Top Fields Constructors Methods
org.lwjgl.opengl

pack-priv final Class WindowsMouse

extends Object
Class Inheritance
Imports
java.nio.ByteBuffer, .IntBuffer, org.lwjgl.BufferUtils, .LWJGLException, .LWJGLUtil, org.lwjgl.input.Mouse

Field Summary

Modifier and TypeField and Description
private int
private int
private int
private final Object
private byte[]
private final EventQueue
private final boolean
private final long
private int
private int
private final int
private final ByteBuffer
private boolean

Constructor Summary

AccessConstructor and Description
pack-priv
WindowsMouse(long hwnd)

Method Summary

Modifier and TypeMethod and Description
private void
private Object
public void
public Object
public int
public void
grab(boolean grab, boolean should_center)

public void
handleMouseButton(byte button, byte state, long millis)

public void
handleMouseMoved(int x, int y, long millis)

public void
handleMouseScrolled(int event_dwheel, long millis)

public boolean
public boolean
public void
poll(IntBuffer coord_buffer, ByteBuffer buttons, WindowsDisplay display)

private void
putMouseEvent(byte button, byte state, int dz, long nanos)

private void
putMouseEventWithCoords(byte button, byte state, int coord1, int coord2, int dz, long nanos)

public void
read(ByteBuffer buffer)

public void
setPosition(int x, int y)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

accum_dwheelback to summary
private int accum_dwheel
accum_dxback to summary
private int accum_dx
accum_dyback to summary
private int accum_dy
blank_cursorback to summary
private final Object blank_cursor
button_statesback to summary
private byte[] button_states
event_queueback to summary
private final EventQueue event_queue
has_wheelback to summary
private final boolean has_wheel
hwndback to summary
private final long hwnd
last_xback to summary
private int last_x
last_yback to summary
private int last_y
mouse_button_countback to summary
private final int mouse_button_count
mouse_eventback to summary
private final ByteBuffer mouse_event
mouse_grabbedback to summary
private boolean mouse_grabbed

Constructor Detail

WindowsMouseback to summary
pack-priv WindowsMouse(long hwnd) throws LWJGLException

Method Detail

centerCursorback to summary
private void centerCursor()
createBlankCursorback to summary
private Object createBlankCursor() throws LWJGLException
destroyback to summary
public void destroy()
getBlankCursorback to summary
public Object getBlankCursor()
getButtonCountback to summary
public int getButtonCount()
grabback to summary
public void grab(boolean grab, boolean should_center)
handleMouseButtonback to summary
public void handleMouseButton(byte button, byte state, long millis)
handleMouseMovedback to summary
public void handleMouseMoved(int x, int y, long millis)
handleMouseScrolledback to summary
public void handleMouseScrolled(int event_dwheel, long millis)
hasWheelback to summary
public boolean hasWheel()
isGrabbedback to summary
public boolean isGrabbed()
pollback to summary
public void poll(IntBuffer coord_buffer, ByteBuffer buttons, WindowsDisplay display)
putMouseEventback to summary
private void putMouseEvent(byte button, byte state, int dz, long nanos)
putMouseEventWithCoordsback to summary
private void putMouseEventWithCoords(byte button, byte state, int coord1, int coord2, int dz, long nanos)
readback to summary
public void read(ByteBuffer buffer)
setPositionback to summary
public void setPosition(int x, int y)