BEEP-8 Helper Lib 1.0.0
|
NES controller emulation class. More...
#include <nesctrl.h>
Public Member Functions | |
void | Reset () |
Reset the NES controller state and load images. | |
void | Step () |
Process touch events and update the controller state. | |
void | Draw (b8PpuCmd *pcmd, u32 otz) |
Draw the NES controller on the screen. | |
u32 | GetCntHold (ENesCtrl enc) |
Get the hold count for a specific button. | |
u32 | GetCntRelease (ENesCtrl enc) |
Get the release count for a specific button. | |
CNesCtrl (const CfgNesCtrl &cfg) | |
Constructor for CNesCtrl. | |
~CNesCtrl () | |
Destructor for CNesCtrl. | |
NES controller emulation class.
This class emulates an NES controller using touch screen inputs. It processes touch events, updates the controller state, and renders the controller on the screen.
CNesCtrl::CNesCtrl | ( | const CfgNesCtrl & | cfg | ) |
Constructor for CNesCtrl.
cfg | Configuration for the NES controller. |
void CNesCtrl::Draw | ( | b8PpuCmd * | pcmd, |
u32 | otz ) |
Draw the NES controller on the screen.
pcmd | Pointer to the PPU command buffer. |
otz | Order of drawing. |
u32 CNesCtrl::GetCntHold | ( | ENesCtrl | enc | ) |
Get the hold count for a specific button.
enc | NES controller button. |
u32 CNesCtrl::GetCntRelease | ( | ENesCtrl | enc | ) |
Get the release count for a specific button.
enc | NES controller button. |