mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-12 19:44:05 +09:00
keyboard control ported to GDX (at least as much as I can right now)
This commit is contained in:
@@ -4,8 +4,7 @@ package net.torvald.terrarum.ui
|
||||
* Created by minjaesong on 16-03-06.
|
||||
*/
|
||||
interface KeyControlled {
|
||||
fun keyPressed(key: Int, c: Char)
|
||||
fun keyReleased(key: Int, c: Char)
|
||||
fun controllerButtonPressed(controller: Int, button: Int)
|
||||
fun controllerButtonReleased(controller: Int, button: Int)
|
||||
fun keyDown(keycode: Int): Boolean
|
||||
fun keyUp(keycode: Int): Boolean
|
||||
fun keyTyped(character: Char): Boolean
|
||||
}
|
||||
Reference in New Issue
Block a user