1
0
mirror of https://github.com/Klagarge/PokeHES.git synced 2025-11-01 11:59:17 +00:00

polish and bug fix

This commit is contained in:
2022-06-12 12:35:08 +02:00
parent 74956e5e0b
commit 5008b6e18a
7 changed files with 73 additions and 24 deletions

26
src/Control/Keyboard.java Normal file
View File

@@ -0,0 +1,26 @@
package Control;
import com.badlogic.gdx.Input;
import Screen.ScreenPlayer;
public class Keyboard {
public void keyDown(int keycode, ScreenPlayer sp, Controller c) {
switch (keycode) {
case Input.Keys.Z:
if (sp.sm.zoom == 1.0) {
sp.sm.zoom = 0.5f;
} else {
sp.sm.zoom = 1;
}
return;
default:
break;
}
c.keyStatus.put(keycode, true);
}
public void onKeyUp(int keycode, ScreenPlayer sp, Controller c) {
c.keyStatus.put(keycode, false);
}
}