gb::Joy class

Emulate Gameboy Joypad.

Contents

Public types

enum Key { RIGHT = 0, LEFT = 1, UP = 2, DOWN = 3, A = 4, B = 5, SELECT = 6, START = 7 }
Keys on the Gameboy.
using Ptr = std::unique_ptr<Joy>
Smart pointer type.

Public functions

void press(Key key)
void release(Key key)

Function documentation

void gb::Joy::press(Key key)

Press Key on the Gameboy

void gb::Joy::release(Key key)

Release Key on the Gameboy