[nostalgia/core/gba] Add user input support

This commit is contained in:
2020-07-18 01:19:07 -05:00
parent 72883285f2
commit e8151ac037
5 changed files with 45 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
/*
* Copyright 2016 - 2020 gary@drinkingtea.net
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#pragma once
namespace nostalgia::core {
enum Key {
// GBA implementation currently relies on GamePad entry order
GamePad_A = 1,
GamePad_B = 2,
GamePad_Select = 4,
GamePad_Start = 8,
GamePad_Right = 16,
GamePad_Left = 32,
GamePad_Up = 64,
GamePad_Down = 128,
GamePad_R = 256,
GamePad_L = 512,
};
[[nodiscard]] bool buttonDown(Key);
}