mirror of
https://github.com/rodamaral/lsnes.git
synced 2025-04-02 10:42:15 -04:00
27 lines
457 B
C++
Executable file
27 lines
457 B
C++
Executable file
struct NesGamepad : TertiaryInput {
|
|
DigitalInput up, down, left, right;
|
|
DigitalInput b, a, select, start;
|
|
TurboInput bTurbo, aTurbo;
|
|
|
|
int16_t poll(unsigned n);
|
|
NesGamepad();
|
|
};
|
|
|
|
struct NesPort1Input : SecondaryInput {
|
|
NesGamepad gamepad;
|
|
|
|
NesPort1Input();
|
|
};
|
|
|
|
struct NesPort2Input : SecondaryInput {
|
|
NesGamepad gamepad;
|
|
|
|
NesPort2Input();
|
|
};
|
|
|
|
struct NesInput : PrimaryInput {
|
|
NesPort1Input port1;
|
|
NesPort2Input port2;
|
|
|
|
NesInput();
|
|
};
|