1
0
mirror of https://github.com/Klagarge/PokeHES.git synced 2025-07-18 05:41:10 +00:00
This commit is contained in:
2022-06-16 23:29:36 +02:00
parent 3e96178c0f
commit 790fd9d4ec
9 changed files with 51 additions and 178 deletions

View File

@ -23,7 +23,7 @@ public class PokeMudry extends PortableApplication {
private long beginTime;
private long lastMesure;
public static boolean front_montant = false;
public static boolean risingFront = false;
public static void main(String[] args) {
@ -138,14 +138,14 @@ public class PokeMudry extends PortableApplication {
@Override
public void onKeyDown(int keycode) {
super.onKeyDown(keycode);
front_montant = true;
risingFront = true;
controller.keyStatus.put(keycode, true);
sp.screenManager.getActiveScreen().onKeyUp(keycode);
}
@Override
public void onKeyUp(int keycode) {
super.onKeyUp(keycode);
front_montant = false;
risingFront = false;
controller.keyStatus.put(keycode, false);
sp.screenManager.getActiveScreen().onKeyDown(keycode);
}