|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jagatoo.input.devices.InputDevice
org.jagatoo.input.devices.Mouse
org.jagatoo.input.impl.jinput.JInputMouse
public class JInputMouse
JInput implementation of the Mouse class.
| Constructor Summary | |
|---|---|
protected |
JInputMouse(MouseFactory factory,
InputSourceWindow sourceWindow,
EventQueue eventQueue,
net.java.games.input.Mouse mouse)
|
| Method Summary | |
|---|---|
void |
centerMouse()
Centers the mouse cursor on the source-window. |
void |
collectEvents(InputSystem is,
EventQueue eventQueue,
long nanoTime)
Processes pending events from the system and places them into the EventQueue. |
void |
consumePendingEvents(InputSystem is,
EventQueue eventQueue,
long nanoTime)
Processes pending events from the system and simply wastes them. |
static MouseButton |
convertButton(net.java.games.input.Component jinputButton)
|
void |
destroyImpl()
Destroys the Mouse. |
void |
onDeviceRegistered(InputSystem inputSystem)
This method is called by the InputSystem after the device has been completely and successfully registered. |
protected void |
setAbsoluteImpl(boolean absolute)
Makes this Mouse an absolute mouse (only delta positions become valid) or relative. |
void |
setPosition(int x,
int y)
This method stores the positional values and may do some additional implementation dependent stuff. |
void |
updateMouse(InputSystem is,
EventQueue eventQueue,
long nanoTime)
Processes pending events from the system and directly fires them (notifes the listeners). |
| Methods inherited from class org.jagatoo.input.devices.InputDevice |
|---|
addInputStateListener, equals, fireStateEventsAndDoActions, getEventQueue, getName, getSourceWindow, hasInputStateListener, isEnabled, onDeviceUnregistered, removeInputStateListener, setEnabled |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected JInputMouse(MouseFactory factory,
InputSourceWindow sourceWindow,
EventQueue eventQueue,
net.java.games.input.Mouse mouse)
throws InputSystemException
InputSystemException| Method Detail |
|---|
public static final MouseButton convertButton(net.java.games.input.Component jinputButton)
public void setPosition(int x,
int y)
throws InputSystemException
setPosition in class MouseInputSystemException
public void centerMouse()
throws InputSystemException
centerMouse in class MouseInputSystemException
public void consumePendingEvents(InputSystem is,
EventQueue eventQueue,
long nanoTime)
throws InputSystemException
InputDevice.update(InputSystem, EventQueue, long) method,
if the device is disabled or its InputSourceWindow doesn't currently
receive input events.
consumePendingEvents in class InputDeviceInputSystemException
public void collectEvents(InputSystem is,
EventQueue eventQueue,
long nanoTime)
throws InputSystemException
InputDevice.update(InputSystem, EventQueue, long)
method is invoked.
collectEvents in class InputDeviceInputSystemException
public void updateMouse(InputSystem is,
EventQueue eventQueue,
long nanoTime)
throws InputSystemException
InputDevice.collectEvents(InputSystem, EventQueue, long)
method placed events into it.
updateMouse in class MouseInputSystemException
protected void setAbsoluteImpl(boolean absolute)
throws InputSystemException
Mouse.setAbsolute(boolean),
but only if the value has changed.
setAbsoluteImpl in class MouseInputSystemException
public void onDeviceRegistered(InputSystem inputSystem)
throws InputSystemException
onDeviceRegistered in class InputDeviceInputSystemException
public void destroyImpl()
throws InputSystemException
destroyImpl in class MouseInputSystemException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||