Top Fields Constructors Methods
org.lwjgl.opengl

pack-priv final Class LinuxMouse

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

Field Summary

Modifier and TypeField and Description
private int
private int
private int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private int
private static final int
private static final int
private byte[]
private final long
private final ByteBuffer
private EventQueue
private final long
private long
private int
private int
private static final int
private final IntBuffer
private final long
private static final int
private final long

Constructor Summary

AccessConstructor and Description
pack-priv
LinuxMouse(long display, long window, long input_window)

Method Summary

Modifier and TypeMethod and Description
public void
changeGrabbed(boolean grab, boolean warp_pointer)

private void
doHandlePointerMotion(boolean grab, boolean warp_pointer, long root_window, int root_x, int root_y, int win_x, int win_y, long nanos)

private void
doWarpPointer(int center_x, int center_y)

public boolean
filterEvent(boolean grab, boolean warp_pointer, LinuxEvent event)

public int
private void
handleButton(boolean grab, int button, byte state, long nanos)

private void
handleButtonEvent(boolean grab, long millis, int type, byte button)

private void
handleButtonPress(boolean grab, byte button, long nanos)

private void
handlePointerMotion(boolean grab, boolean warp_pointer, long millis, long root_window, int x_root, int y_root, int x, int y)

private void
handleWarpEvent(int x, int y)

private static native int
nGetButtonCount(long display)

private static native int
nGetWindowHeight(long display, long window)

private static native int
nGetWindowWidth(long display, long window)

private static native long
nQueryPointer(long display, long window, IntBuffer result)

private static native void
nSendWarpEvent(long display, long window, long warp_atom, int center_x, int center_y)

private static native void
nWarpCursor(long display, long window, int x, int y)

public void
poll(boolean grab, IntBuffer coord_buffer, ByteBuffer buttons_buffer)

private void
putMouseEvent(boolean grab, 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)

private void
reset(boolean grab, boolean warp_pointer)

private void
resetCursor(int x, int y)

private void
setCursorPos(boolean grab, int x, int y, long nanos)

public void
setCursorPosition(int x, int y)

private int
transformY(int y)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

accum_dxback to summary
private int accum_dx
accum_dyback to summary
private int accum_dy
accum_dzback to summary
private int accum_dz
Button1back to summary
private static final int Button1
Button2back to summary
private static final int Button2
Button3back to summary
private static final int Button3
Button4back to summary
private static final int Button4
Button5back to summary
private static final int Button5
Button6back to summary
private static final int Button6
Button7back to summary
private static final int Button7
Button8back to summary
private static final int Button8
Button9back to summary
private static final int Button9
button_countback to summary
private int button_count
ButtonPressback to summary
private static final int ButtonPress
ButtonReleaseback to summary
private static final int ButtonRelease
buttonsback to summary
private byte[] buttons
displayback to summary
private final long display
event_bufferback to summary
private final ByteBuffer event_buffer
event_queueback to summary
private EventQueue event_queue
input_windowback to summary
private final long input_window
last_event_nanosback to summary
private long last_event_nanos
last_xback to summary
private int last_x
last_yback to summary
private int last_y
POINTER_WARP_BORDERback to summary
private static final int POINTER_WARP_BORDER
query_pointer_bufferback to summary
private final IntBuffer query_pointer_buffer
warp_atomback to summary
private final long warp_atom
WHEEL_SCALEback to summary
private static final int WHEEL_SCALE
windowback to summary
private final long window

Constructor Detail

LinuxMouseback to summary
pack-priv LinuxMouse(long display, long window, long input_window) throws LWJGLException

Method Detail

changeGrabbedback to summary
public void changeGrabbed(boolean grab, boolean warp_pointer)
doHandlePointerMotionback to summary
private void doHandlePointerMotion(boolean grab, boolean warp_pointer, long root_window, int root_x, int root_y, int win_x, int win_y, long nanos)
doWarpPointerback to summary
private void doWarpPointer(int center_x, int center_y)
filterEventback to summary
public boolean filterEvent(boolean grab, boolean warp_pointer, LinuxEvent event)
getButtonCountback to summary
public int getButtonCount()
handleButtonback to summary
private void handleButton(boolean grab, int button, byte state, long nanos)
handleButtonEventback to summary
private void handleButtonEvent(boolean grab, long millis, int type, byte button)
handleButtonPressback to summary
private void handleButtonPress(boolean grab, byte button, long nanos)
handlePointerMotionback to summary
private void handlePointerMotion(boolean grab, boolean warp_pointer, long millis, long root_window, int x_root, int y_root, int x, int y)
handleWarpEventback to summary
private void handleWarpEvent(int x, int y)
nGetButtonCountback to summary
private static native int nGetButtonCount(long display)
nGetWindowHeightback to summary
private static native int nGetWindowHeight(long display, long window)
nGetWindowWidthback to summary
private static native int nGetWindowWidth(long display, long window)
nQueryPointerback to summary
private static native long nQueryPointer(long display, long window, IntBuffer result)
nSendWarpEventback to summary
private static native void nSendWarpEvent(long display, long window, long warp_atom, int center_x, int center_y)
nWarpCursorback to summary
private static native void nWarpCursor(long display, long window, int x, int y)
pollback to summary
public void poll(boolean grab, IntBuffer coord_buffer, ByteBuffer buttons_buffer)
putMouseEventback to summary
private void putMouseEvent(boolean grab, 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)
resetback to summary
private void reset(boolean grab, boolean warp_pointer)
resetCursorback to summary
private void resetCursor(int x, int y)
setCursorPosback to summary
private void setCursorPos(boolean grab, int x, int y, long nanos)
setCursorPositionback to summary
public void setCursorPosition(int x, int y)
transformYback to summary
private int transformY(int y)