mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-16 05:24:06 +09:00
keyboard control ported to GDX (at least as much as I can right now)
This commit is contained in:
@@ -4,9 +4,9 @@ package net.torvald.terrarum.ui
|
||||
* Created by minjaesong on 16-03-06.
|
||||
*/
|
||||
interface MouseControlled {
|
||||
fun mouseMoved(oldx: Int, oldy: Int, newx: Int, newy: Int)
|
||||
fun mouseDragged(oldx: Int, oldy: Int, newx: Int, newy: Int)
|
||||
fun mousePressed(button: Int, x: Int, y: Int)
|
||||
fun mouseReleased(button: Int, x: Int, y: Int)
|
||||
fun mouseWheelMoved(change: Int)
|
||||
fun mouseMoved(screenX: Int, screenY: Int): Boolean
|
||||
fun touchDragged(screenX: Int, screenY: Int, pointer: Int): Boolean
|
||||
fun touchDown(screenX: Int, screenY: Int, pointer: Int, button: Int): Boolean
|
||||
fun touchUp(screenX: Int, screenY: Int, pointer: Int, button: Int): Boolean
|
||||
fun scrolled(amount: Int): Boolean
|
||||
}
|
||||
Reference in New Issue
Block a user