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.h (331B)


      1#pragma once
      2
      3#include "keysym.h"
      4
      5#include <stdint.h>
      6
      7/* Generic Desktop Page (0x01) */
      8#define KS_PWR  KS_SYSTEM_POWER
      9#define KS_SLEP KS_SYSTEM_SLEEP
     10#define KS_WAKE KS_SYSTEM_WAKE
     11
     12enum keysym_system {
     13	KS_SYSTEM_POWER = SPECIAL(0, S_SYSTEM),
     14	KS_SYSTEM_SLEEP,
     15	KS_SYSTEM_WAKE,
     16};
     17
     18uint16_t keysym_to_system(uint32_t keysym);