Top Methods
org.lwjgl.opengl

public Interface InputImplementation

Known Direct Subinterfaces
org.lwjgl.opengl.DisplayImplementation
Imports
java.nio.ByteBuffer, .IntBuffer, org.lwjgl.LWJGLException

Method Summary

Modifier and TypeMethod and Description
public Object
createCursor(int width, int height, int xHotspot, int yHotspot, int numImages, IntBuffer images, IntBuffer delays)

Native cursor handles

public void
createKeyboard()

Method to create the keyboard

public void
createMouse()

Method to create the mouse.

public void
destroyCursor(Object cursor_handle)

public void
destroyKeyboard()

Method to destroy the keyboard

public void
destroyMouse()

Method the destroy the mouse

public int
getButtonCount()

Query of button count

public int
public int
getMaxCursorSize()

Method returning the maximum cursor size

public int
getMinCursorSize()

Method returning the minimum cursor size

public int
getNativeCursorCapabilities()

Function to determine native cursor support

public int
public void
grabMouse(boolean grab)

public boolean
hasWheel()

Query of wheel support

public boolean
public void
pollKeyboard(ByteBuffer
the address of a 256-byte buffer to place key states in.
keyDownBuffer
)

Method to poll the keyboard.

public void
pollMouse(IntBuffer coord_buffer, ByteBuffer buttons)

Method to poll the mouse

public void
readKeyboard(ByteBuffer buffer)

Method to read the keyboard buffer

public void
readMouse(ByteBuffer buffer)

Method to read the mouse buffer

public void
setCursorPosition(int x, int y)

Method to set the native cursor position

public void
setNativeCursor(Object handle)

Method to set the native cursor

Method Detail

createCursorback to summary
public Object createCursor(int width, int height, int xHotspot, int yHotspot, int numImages, IntBuffer images, IntBuffer delays) throws LWJGLException

Native cursor handles

createKeyboardback to summary
public void createKeyboard() throws LWJGLException

Method to create the keyboard

createMouseback to summary
public void createMouse() throws LWJGLException

Method to create the mouse.

destroyCursorback to summary
public void destroyCursor(Object cursor_handle)
destroyKeyboardback to summary
public void destroyKeyboard()

Method to destroy the keyboard

destroyMouseback to summary
public void destroyMouse()

Method the destroy the mouse

getButtonCountback to summary
public int getButtonCount()

Query of button count

getHeightback to summary
public int getHeight()
getMaxCursorSizeback to summary
public int getMaxCursorSize()

Method returning the maximum cursor size

getMinCursorSizeback to summary
public int getMinCursorSize()

Method returning the minimum cursor size

getNativeCursorCapabilitiesback to summary
public int getNativeCursorCapabilities()

Function to determine native cursor support

getWidthback to summary
public int getWidth()
grabMouseback to summary
public void grabMouse(boolean grab)
hasWheelback to summary
public boolean hasWheel()

Query of wheel support

isInsideWindowback to summary
public boolean isInsideWindow()
pollKeyboardback to summary
public void pollKeyboard(ByteBuffer keyDownBuffer)

Method to poll the keyboard.

Parameters
keyDownBuffer:ByteBuffer

the address of a 256-byte buffer to place key states in.

pollMouseback to summary
public void pollMouse(IntBuffer coord_buffer, ByteBuffer buttons)

Method to poll the mouse

readKeyboardback to summary
public void readKeyboard(ByteBuffer buffer)

Method to read the keyboard buffer

readMouseback to summary
public void readMouse(ByteBuffer buffer)

Method to read the mouse buffer

setCursorPositionback to summary
public void setCursorPosition(int x, int y)

Method to set the native cursor position

setNativeCursorback to summary
public void setNativeCursor(Object handle) throws LWJGLException

Method to set the native cursor