Package org.lwjgl.opengl
Interface InputImplementation
public interface InputImplementation
-
Method Summary
Modifier and TypeMethodDescriptioncreateCursor(int width, int height, int xHotspot, int yHotspot, int numImages, IntBuffer images, IntBuffer delays) Native cursor handlesvoidMethod to create the keyboardvoidMethod to create the mouse.voiddestroyCursor(Object cursor_handle) voidMethod to destroy the keyboardvoidMethod the destroy the mouseintQuery of button countintintMethod returning the maximum cursor sizeintMethod returning the minimum cursor sizeintFunction to determine native cursor supportintgetWidth()voidgrabMouse(boolean grab) booleanhasWheel()Query of wheel supportbooleanvoidpollKeyboard(ByteBuffer keyDownBuffer) Method to poll the keyboard.voidpollMouse(IntBuffer coord_buffer, ByteBuffer buttons) Method to poll the mousevoidreadKeyboard(ByteBuffer buffer) Method to read the keyboard buffervoidreadMouse(ByteBuffer buffer) Method to read the mouse buffervoidsetCursorPosition(int x, int y) Method to set the native cursor positionvoidsetNativeCursor(Object handle) Method to set the native cursor
-
Method Details
-
hasWheel
boolean hasWheel()Query of wheel support -
getButtonCount
int getButtonCount()Query of button count -
createMouse
Method to create the mouse.- Throws:
LWJGLException
-
destroyMouse
void destroyMouse()Method the destroy the mouse -
pollMouse
Method to poll the mouse -
readMouse
Method to read the mouse buffer -
grabMouse
void grabMouse(boolean grab) -
getNativeCursorCapabilities
int getNativeCursorCapabilities()Function to determine native cursor support -
setCursorPosition
void setCursorPosition(int x, int y) Method to set the native cursor position -
setNativeCursor
Method to set the native cursor- Throws:
LWJGLException
-
getMinCursorSize
int getMinCursorSize()Method returning the minimum cursor size -
getMaxCursorSize
int getMaxCursorSize()Method returning the maximum cursor size -
createKeyboard
Method to create the keyboard- Throws:
LWJGLException
-
destroyKeyboard
void destroyKeyboard()Method to destroy the keyboard -
pollKeyboard
Method to poll the keyboard.- Parameters:
keyDownBuffer- the address of a 256-byte buffer to place key states in.
-
readKeyboard
Method to read the keyboard buffer -
createCursor
Object createCursor(int width, int height, int xHotspot, int yHotspot, int numImages, IntBuffer images, IntBuffer delays) throws LWJGLException Native cursor handles- Throws:
LWJGLException
-
destroyCursor
-
getWidth
int getWidth() -
getHeight
int getHeight() -
isInsideWindow
boolean isInsideWindow()
-