sxkbd

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

mouse.h (932B)


      1#pragma once
      2
      3#include "keysym.h"
      4
      5#define KS_MS_U KS_MS_UP
      6#define KS_MS_D KS_MS_DOWN
      7#define KS_MS_L KS_MS_LEFT
      8#define KS_MS_R KS_MS_RIGHT
      9#define KS_BTN1 KS_MS_BTN1
     10#define KS_BTN2 KS_MS_BTN2
     11#define KS_BTN3 KS_MS_BTN3
     12#define KS_BTN4 KS_MS_BTN4
     13#define KS_BTN5 KS_MS_BTN5
     14#define KS_BTN6 KS_MS_BTN6
     15#define KS_BTN7 KS_MS_BTN7
     16#define KS_BTN8 KS_MS_BTN8
     17#define KS_WH_U KS_MS_WH_UP
     18#define KS_WH_D KS_MS_WH_DOWN
     19#define KS_WH_L KS_MS_WH_LEFT
     20#define KS_WH_R KS_MS_WH_RIGHT
     21#define KS_ACL0 KS_MS_ACCEL0
     22#define KS_ACL1 KS_MS_ACCEL1
     23#define KS_ACL2 KS_MS_ACCEL2
     24
     25enum keysym_mouse {
     26	/* Mouse Buttons */
     27	KC_MS_UP = KEYSYM_MOUSE_MASK,
     28	KC_MS_DOWN,
     29	KC_MS_LEFT,
     30	KC_MS_RIGHT,
     31	KC_MS_BTN1,
     32	KC_MS_BTN2,
     33	KC_MS_BTN3,
     34	KC_MS_BTN4,
     35	KC_MS_BTN5,
     36	KC_MS_BTN6,
     37	KC_MS_BTN7,
     38	KC_MS_BTN8,
     39
     40	/* Mouse Wheel */
     41	KC_MS_WH_UP,
     42	KC_MS_WH_DOWN,
     43	KC_MS_WH_LEFT,
     44	KC_MS_WH_RIGHT,
     45
     46	/* Acceleration */
     47	KC_MS_ACCEL0,
     48	KC_MS_ACCEL1,
     49	KC_MS_ACCEL2
     50};