MCPcopy Create free account
hub / github.com/SmingHub/Sming / setHat

Method setHat

Sming/Libraries/SwitchJoycon/src/SwitchJoycon.cpp:301–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299}
300
301void SwitchJoycon::setHat(JoystickPosition position)
302{
303 if(state.hat == static_cast<uint8_t>(position)) {
304 return;
305 }
306
307 state.hat = static_cast<uint8_t>(position);
308
309 if(autoReport) {
310 sendReport();
311 }
312}
313
314void SwitchJoycon::setXAxis(int16_t value)
315{

Callers 1

loopFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected