85 u32 _cnt_hold [ 8 ] = {0};
86 u32 _cnt_release[ 8 ] = {0};
87 void vOnStep()
override;
88 void vOnDraw( b8PpuCmd* cmd_ )
override;
96 return _cnt_hold[
static_cast< u32
>( epad_ ) ];
105 return _cnt_release[
static_cast< u32
>( epad_ ) ];
Class for managing a gamepad's input and state.
Definition pad.h:81
CPadObj(u32 idx_, const CfgNesCtrl *pcfg_=nullptr)
Construct a new CPadObj object.
Definition pad.cpp:80
virtual ~CPadObj()
Destroy the CPadObj object.
Definition pad.cpp:92
u32 GetCntRelease(EPad epad_) const
Get the release count for a specific button.
Definition pad.h:104
u32 GetCntHold(EPad epad_) const
Get the hold count for a specific button.
Definition pad.h:95
Configuration for the NES controller.
Definition nesctrl.h:25
Header file for managing dynamic creation and destruction of objects in a game.
NES controller emulation module for touch screen devices.
CPadObj * _CPadObj(u32 idx_)
Get the CPadObj instance for a specific index.
Definition pad.cpp:97
EPad
Enum for gamepad buttons.
Definition pad.h:70