MCPcopy Create free account
hub / github.com/Aloshi/EmulationStation / input

Method input

src/components/SwitchComponent.cpp:14–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12}
13
14bool SwitchComponent::input(InputConfig* config, Input input)
15{
16 if(config->isMappedTo("a", input) && input.value)
17 {
18 mState = !mState;
19 return true;
20 }
21
22 return false;
23}
24
25void SwitchComponent::render(const Eigen::Affine3f& parentTrans)
26{

Callers

nothing calls this directly

Calls 1

isMappedToMethod · 0.80

Tested by

no test coverage detected