| 2 | #include "drivers/shared/driverhelper.h" |
| 3 | |
| 4 | void MDMiniDriver::initialize() { |
| 5 | mdminiReport = { |
| 6 | .id = 0x01, |
| 7 | .notuse1 = 0x7f, |
| 8 | .notuse2 = 0x7f, |
| 9 | .lx = 0x7f, |
| 10 | .ly = 0x7f, |
| 11 | .buttons = 0x0f, |
| 12 | .notuse3 = 0x00, |
| 13 | }; |
| 14 | |
| 15 | class_driver = { |
| 16 | #if CFG_TUSB_DEBUG >= 2 |
| 17 | .name = "MDMINI", |
| 18 | #endif |
| 19 | .init = hidd_init, |
| 20 | .reset = hidd_reset, |
| 21 | .open = hidd_open, |
| 22 | .control_xfer_cb = hidd_control_xfer_cb, |
| 23 | .xfer_cb = hidd_xfer_cb, |
| 24 | .sof = NULL |
| 25 | }; |
| 26 | } |
| 27 | |
| 28 | bool MDMiniDriver::process(Gamepad * gamepad) { |
| 29 | mdminiReport.lx = 0x7f; |
nothing calls this directly
no outgoing calls
no test coverage detected