MCPcopy Create free account
hub / github.com/TASEmulators/fceux / getRisingEdge

Method getRisingEdge

src/drivers/Qt/input.cpp:401–421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

399}
400
401int hotkey_t::getRisingEdge(void)
402{
403 if (sdl.value < 0)
404 {
405 return 0;
406 }
407
408 if (getState())
409 {
410 if (!prevState)
411 {
412 prevState = 1;
413 return 1;
414 }
415 }
416 else
417 {
418 prevState = 0;
419 }
420 return 0;
421}
422
423void hotkey_t::setModifierFromString(const char *s)
424{

Callers 1

KeyboardCommandsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected