public interface InputImplementation
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
createCursor(int width,
int height,
int xHotspot,
int yHotspot,
int numImages,
java.nio.IntBuffer images,
java.nio.IntBuffer delays)
Native cursor handles
|
void |
createKeyboard()
Method to create the keyboard
|
void |
createMouse()
Method to create the mouse.
|
void |
destroyCursor(java.lang.Object cursor_handle) |
void |
destroyKeyboard()
Method to destroy the keyboard
|
void |
destroyMouse()
Method the destroy the mouse
|
int |
getButtonCount()
Query of button count
|
int |
getHeight() |
int |
getMaxCursorSize()
Method returning the maximum cursor size
|
int |
getMinCursorSize()
Method returning the minimum cursor size
|
int |
getNativeCursorCapabilities()
Function to determine native cursor support
|
int |
getWidth() |
void |
grabMouse(boolean grab) |
boolean |
hasWheel()
Query of wheel support
|
boolean |
isInsideWindow() |
void |
pollKeyboard(java.nio.ByteBuffer keyDownBuffer)
Method to poll the keyboard.
|
void |
pollMouse(java.nio.IntBuffer coord_buffer,
java.nio.ByteBuffer buttons)
Method to poll the mouse
|
void |
readKeyboard(java.nio.ByteBuffer buffer)
Method to read the keyboard buffer
|
void |
readMouse(java.nio.ByteBuffer buffer)
Method to read the keyboard buffer
|
void |
setCursorPosition(int x,
int y)
Method to set the native cursor position
|
void |
setNativeCursor(java.lang.Object handle)
Method to set the native cursor
|
boolean hasWheel()
int getButtonCount()
void createMouse() throws LWJGLException
LWJGLException
void destroyMouse()
void pollMouse(java.nio.IntBuffer coord_buffer, java.nio.ByteBuffer buttons)
void readMouse(java.nio.ByteBuffer buffer)
void grabMouse(boolean grab)
int getNativeCursorCapabilities()
void setCursorPosition(int x, int y)
void setNativeCursor(java.lang.Object handle) throws LWJGLException
LWJGLException
int getMinCursorSize()
int getMaxCursorSize()
void createKeyboard() throws LWJGLException
LWJGLException
void destroyKeyboard()
void pollKeyboard(java.nio.ByteBuffer keyDownBuffer)
keyDownBuffer
- the address of a 256-byte buffer to place
key states in.void readKeyboard(java.nio.ByteBuffer buffer)
java.lang.Object createCursor(int width, int height, int xHotspot, int yHotspot, int numImages, java.nio.IntBuffer images, java.nio.IntBuffer delays) throws LWJGLException
LWJGLException
void destroyCursor(java.lang.Object cursor_handle)
int getWidth()
int getHeight()
boolean isInsideWindow()
Copyright © 2002-2009 lwjgl.org. All Rights Reserved.