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

Function UpdateFTrainer

src/drivers/Qt/input.cpp:2018–2031  ·  view source on GitHub ↗

* Update the status of the FTrainer input device. */

Source from the content-addressed store, hash-verified

2016 * Update the status of the FTrainer input device.
2017 */
2018static void
2019UpdateFTrainer()
2020{
2021 int x;
2022 FTrainerData = 0;
2023
2024 for (x = 0; x < 12; x++)
2025 {
2026 if (DTestButton(&FTrainerButtons[x]))
2027 {
2028 FTrainerData |= (1 << x);
2029 }
2030 }
2031}
2032
2033/**
2034 * Get the display name of the key or joystick button mapped to a specific

Callers 1

FCEUD_UpdateInputFunction · 0.70

Calls 1

DTestButtonFunction · 0.70

Tested by

no test coverage detected