public interface IInput
| Modifier and Type | Method and Description |
|---|---|
Point |
getPointer() |
Point |
getPointerDrag(int buttonIndex) |
Point |
getPointerMove() |
byte |
isButtonClicked(int index) |
float |
isButtonPressed(int index) |
boolean |
isButtonReleased(int index) |
byte |
isKeyClicked(int index) |
float |
isKeyPressed(int index) |
boolean |
isKeyReleased(int index) |
boolean |
isPointerLocked()
Optional
|
void |
lockPointer(Point position)
Optional
|
void |
readInput()
Update (call it once per frame).
|
void readInput()
float isKeyPressed(int index)
index - the key id (use KeyEvent.VK_)boolean isKeyReleased(int index)
index - the key id (use KeyEvent.VK_)byte isKeyClicked(int index)
index - the key id (use KeyEvent.VK_)float isButtonPressed(int index)
index - the button id, starting from 0boolean isButtonReleased(int index)
index - the button id, starting from 0byte isButtonClicked(int index)
index - the button id, starting from 0Point getPointer()
Point getPointerMove()
Point getPointerDrag(int buttonIndex)
void lockPointer(Point position)
position - boolean isPointerLocked()
lockPointer(Point)Bonzai Engine 1.4.1-20200831 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2019 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com