1
0
mirror of https://github.com/Klagarge/PokeHES.git synced 2025-11-02 04:19:18 +00:00

finish to add time

This commit is contained in:
2022-06-16 14:24:20 +02:00
parent e748f763a8
commit 20a4356f69
9 changed files with 30 additions and 38 deletions

View File

@@ -1,23 +1,9 @@
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) {