sxkbd

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

consumer.h (1293B)


      1#pragma once
      2
      3#include "keysym.h"
      4
      5#include <stdint.h>
      6
      7/* Consumer Page (0x0C) */
      8#define KS_MUTE KS_AUDIO_MUTE
      9#define KS_VOLU KS_AUDIO_VOL_UP
     10#define KS_VOLD KS_AUDIO_VOL_DOWN
     11#define KS_MNXT KS_MEDIA_NEXT_TRACK
     12#define KS_MPRV KS_MEDIA_PREV_TRACK
     13#define KS_MSTP KS_MEDIA_STOP
     14#define KS_MPLY KS_MEDIA_PLAY_PAUSE
     15#define KS_MSEL KS_MEDIA_SELECT
     16#define KS_EJCT KS_MEDIA_EJECT
     17#define KS_CALC KS_CALCULATOR
     18#define KS_MYCM KS_MY_COMPUTER
     19#define KS_WSCH KS_WWW_SEARCH
     20#define KS_WHOM KS_WWW_HOME
     21#define KS_WBAK KS_WWW_BACK
     22#define KS_WFWD KS_WWW_FORWARD
     23#define KS_WSTP KS_WWW_STOP
     24#define KS_WREF KS_WWW_REFRESH
     25#define KS_WFAV KS_WWW_FAVORITES
     26#define KS_MFFD KS_MEDIA_FAST_FORWARD
     27#define KS_MRWD KS_MEDIA_REWIND
     28#define KS_BRIU KS_BRIGHTNESS_UP
     29#define KS_BRID KS_BRIGHTNESS_DOWN
     30
     31enum keysym_consumer {
     32	KS_AUDIO_MUTE = SPECIAL(0, S_CONSUMER),
     33	KS_AUDIO_VOL_UP,
     34	KS_AUDIO_VOL_DOWN,
     35	KS_MEDIA_NEXT_TRACK,
     36	KS_MEDIA_PREV_TRACK,
     37	KS_MEDIA_STOP,
     38	KS_MEDIA_PLAY_PAUSE,
     39	KS_MEDIA_SELECT,
     40	KS_MEDIA_EJECT,
     41	KS_MAIL,
     42	KS_CALCULATOR,
     43	KS_MY_COMPUTER,
     44	KS_WWW_SEARCH,
     45	KS_WWW_HOME,
     46	KS_WWW_BACK,
     47	KS_WWW_FORWARD,
     48	KS_WWW_STOP,
     49	KS_WWW_REFRESH,
     50	KS_WWW_FAVORITES,
     51	KS_MEDIA_FAST_FORWARD,
     52	KS_MEDIA_REWIND,
     53	KS_BRIGHTNESS_UP,
     54	KS_BRIGHTNESS_DOWN
     55};
     56
     57uint16_t keysym_to_consumer(uint32_t keysym);