From ada477d6aa5d877bc4363e445e462ae46da2d915 Mon Sep 17 00:00:00 2001 From: otya128 Date: Sat, 24 Dec 2016 14:04:03 +0900 Subject: [PATCH] Add support for L,R --- SMILEBASIC/petitcomputer.d | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SMILEBASIC/petitcomputer.d b/SMILEBASIC/petitcomputer.d index 46010c2..879a9fb 100644 --- a/SMILEBASIC/petitcomputer.d +++ b/SMILEBASIC/petitcomputer.d @@ -708,6 +708,8 @@ class PetitComputer buttonTable[SDL_SCANCODE_B] = Button.B; buttonTable[SDL_SCANCODE_A] = Button.X; buttonTable[SDL_SCANCODE_S] = Button.Y; + buttonTable[SDL_SCANCODE_Q] = Button.L; + buttonTable[SDL_SCANCODE_W] = Button.R; controllerTable[SDL_CONTROLLER_BUTTON_DPAD_UP] = Button.UP; controllerTable[SDL_CONTROLLER_BUTTON_DPAD_DOWN] = Button.DOWN;