Top Inners Fields Constructors Methods
org.lwjgl.util.jinput

pack-priv final Class LWJGLMouse

extends Mouse
Class Inheritance
Imports
java.io.IOException, net.java.games.input.AbstractComponent, .Component, .Controller, .Event, .Mouse, .Rumbler

Author
elias

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
pack-priv static class

Field Summary

Modifier and TypeField and Description
private static final int
private static final int
private int
private static final int
private static final int
private static final int

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private static Component[]
protected synchronized boolean
private LWJGLMouse.Button
map(int lwjgl_button)

public synchronized void
private void
setButtonState(int lwjgl_button)

Inherited from net.java.games.input.Mouse:
getBackgetButton3getButton4getExtragetForwardgetLeftgetMiddlegetPrimaryButtongetRightgetSecondaryButtongetSidegetTertiaryButtongetTypegetWheelgetXgetY

Field Detail

EVENT_BUTTONback to summary
private static final int EVENT_BUTTON
EVENT_DONEback to summary
private static final int EVENT_DONE
event_stateback to summary
private int event_state
EVENT_WHEELback to summary
private static final int EVENT_WHEEL
EVENT_Xback to summary
private static final int EVENT_X
EVENT_Yback to summary
private static final int EVENT_Y

Constructor Detail

LWJGLMouseback to summary
pack-priv LWJGLMouse()

Method Detail

createComponentsback to summary
private static Component[] createComponents()
getNextDeviceEventback to summary
protected synchronized boolean getNextDeviceEvent(Event event) throws IOException

Implements abstract net.java.games.input.AbstractController.getNextDeviceEvent.

mapback to summary
private LWJGLMouse.Button map(int lwjgl_button)
pollDeviceback to summary
public synchronized void pollDevice() throws IOException

Overrides net.java.games.input.AbstractController.pollDevice.

setButtonStateback to summary
private void setButtonState(int lwjgl_button)
org.lwjgl.util.jinput back to summary

pack-priv final Class LWJGLMouse.Axis

extends AbstractComponent
Class Inheritance

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public boolean
isAnalog()

Overrides net.java.games.input.AbstractComponent.isAnalog.

Implements net.java.games.input.Component.isAnalog.

Returns whether or not the axis is analog, or false if it is digital.
public boolean
isRelative()

Implements net.java.games.input.Component.isRelative.

Returns true if data returned from poll is relative to the last call, or false if data is absolute.
protected float
Inherited from net.java.games.input.AbstractComponent:
getDeadZonegetIdentifiergetNamegetPollDatatoString

Constructor Detail

Axisback to summary
pack-priv Axis(Component.Identifier.Axis axis_id)

Method Detail

isAnalogback to summary
public boolean isAnalog()

Overrides net.java.games.input.AbstractComponent.isAnalog.

Implements net.java.games.input.Component.isAnalog.

Doc from net.java.games.input.AbstractComponent.isAnalog.

Returns whether or not the axis is analog, or false if it is digital.

Returns:boolean

false by default, can be overridden

isRelativeback to summary
public boolean isRelative()

Implements net.java.games.input.Component.isRelative.

Doc from net.java.games.input.Component.isRelative.

Returns true if data returned from poll is relative to the last call, or false if data is absolute.

pollback to summary
protected float poll() throws IOException

Implements abstract net.java.games.input.AbstractComponent.poll.

org.lwjgl.util.jinput back to summary

pack-priv final Class LWJGLMouse.Button

extends AbstractComponent
Class Inheritance

Field Summary

Modifier and TypeField and Description
private float

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public boolean
isAnalog()

Overrides net.java.games.input.AbstractComponent.isAnalog.

Implements net.java.games.input.Component.isAnalog.

Returns whether or not the axis is analog, or false if it is digital.
public boolean
isRelative()

Implements net.java.games.input.Component.isRelative.

Returns true if data returned from poll is relative to the last call, or false if data is absolute.
protected float
pack-priv void
setValue(float value)

Inherited from net.java.games.input.AbstractComponent:
getDeadZonegetIdentifiergetNamegetPollDatatoString

Field Detail

valueback to summary
private float value

Hides net.java.games.input.AbstractComponent.value.

Constructor Detail

Buttonback to summary
pack-priv Button(Component.Identifier.Button button_id)

Method Detail

isAnalogback to summary
public boolean isAnalog()

Overrides net.java.games.input.AbstractComponent.isAnalog.

Implements net.java.games.input.Component.isAnalog.

Doc from net.java.games.input.AbstractComponent.isAnalog.

Returns whether or not the axis is analog, or false if it is digital.

Returns:boolean

false by default, can be overridden

isRelativeback to summary
public boolean isRelative()

Implements net.java.games.input.Component.isRelative.

Doc from net.java.games.input.Component.isRelative.

Returns true if data returned from poll is relative to the last call, or false if data is absolute.

pollback to summary
protected float poll() throws IOException

Implements abstract net.java.games.input.AbstractComponent.poll.

setValueback to summary
pack-priv void setValue(float value)