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

Method input

src/Window.cpp:81–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81void Window::input(InputConfig* config, Input input)
82{
83 if(config->isMappedTo("mastervolup", input))
84 {
85 VolumeControl::getInstance()->setVolume(VolumeControl::getInstance()->getVolume() + 5);
86 }
87 else if(config->isMappedTo("mastervoldown", input))
88 {
89 VolumeControl::getInstance()->setVolume(VolumeControl::getInstance()->getVolume() - 5);
90 }
91 else if(peekGui())
92 this->peekGui()->input(config, input);
93}
94
95void Window::update(int deltaTime)
96{

Callers 1

parseEventMethod · 0.45

Calls 4

peekGuiMethod · 0.95
isMappedToMethod · 0.80
setVolumeMethod · 0.80
getVolumeMethod · 0.80

Tested by

no test coverage detected