sxkbd

Firmware for RP2040-based corne split keyboard
git clone https://git.sinitax.com/sinitax/sxkbd
Log | Files | Refs | Submodules | README | LICENSE | sfeed.txt

system.c (317B)


      1#include "keysym/system.h"
      2
      3#include "hid/system.h"
      4
      5#include <stdint.h>
      6
      7uint16_t
      8keysym_to_system(uint32_t keysym)
      9{
     10	switch (keysym) {
     11		case KS_SYSTEM_POWER:
     12			return SYSTEM_POWER_DOWN;
     13		case KS_SYSTEM_SLEEP:
     14			return SYSTEM_SLEEP;
     15		case KS_SYSTEM_WAKE:
     16			return SYSTEM_WAKE_UP;
     17		default:
     18			return 0;
     19	}
     20}