Allow customizing the tab left/right keys.

This commit is contained in:
Unknown W. Brackets committed 2014-01-25 11:58:49 -08:00
1 parent 08157613d5
commit 1c87fb7485
5 files changed
+42 -6

No files matched your search

+8 -1
View File
@@ -44,12 +44,19 @@ int MapPadButtonFixed(int keycode) {
std::vector<keycode_t> confirmKeys;
std::vector<keycode_t> cancelKeys;
std::vector<keycode_t> tabLeftKeys;
std::vector<keycode_t> tabRightKeys;
void SetConfirmCancelKeys(std::vector<keycode_t> confirm, std::vector<keycode_t> cancel) {
void SetConfirmCancelKeys(const std::vector<keycode_t> &confirm, const std::vector<keycode_t> &cancel) {
confirmKeys = confirm;
cancelKeys = cancel;
}
void SetTabLeftRightKeys(const std::vector<keycode_t> &tabLeft, const std::vector<keycode_t> &tabRight) {
tabLeftKeys = tabLeft;
tabRightKeys = tabRight;
}
uint32_t ButtonTracker::Update() {
pad_buttons_ |= pad_buttons_async_set;
pad_buttons_ &= ~pad_buttons_async_clear;