mode_lizard.h 858 B

12345678910111213
  1. // mode_lizard.h -- the controller's native "lizard" desktop behavior (driverless keyboard + mouse).
  2. //
  3. // Not a standalone IController: lizard rides ON the puck interface (puck_hid.cpp calls rfLizard when Steam is
  4. // closed), driving mouse(0x40)+keyboard(0x41) on the same puck HID slot. Canonical Valve SC1 map: right pad ->
  5. // mouse (trackball glide), left pad -> scroll wheel + middle-click, R-trigger/R-pad-click -> left mouse,
  6. // L-trigger -> right mouse; A=Enter B=Esc X=PgUp Y=PgDn, d-pad/left-stick -> arrows, LB=LeftCtrl RB=LeftAlt,
  7. // View=Tab, Menu=Esc. Mouse reuses the same velocity+friction+sub-pixel GLIDE model as Xbox mode (g_mDiv /
  8. // g_mFric, both live-tunable).
  9. #pragma once
  10. #include <Adafruit_TinyUSB.h>
  11. #include <stdint.h>
  12. void rfLizard(const uint8_t* r, Adafruit_USBD_HID* mdev, Adafruit_USBD_HID* kdev, uint8_t mrid, uint8_t krid);