MCPcopy Create free account
hub / github.com/OpenStickCommunity/GP2040-CE / initialize

Method initialize

src/drivers/mdmini/MDMiniDriver.cpp:4–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include "drivers/shared/driverhelper.h"
3
4void 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
28bool MDMiniDriver::process(Gamepad * gamepad) {
29 mdminiReport.lx = 0x7f;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected