Package com.jme3.input.controls
Class MouseAxisTrigger
java.lang.Object
com.jme3.input.controls.MouseAxisTrigger
- All Implemented Interfaces:
- Trigger
A 
MouseAxisTrigger is used as a mapping to mouse axis,
 a mouse axis is movement along the X axis (left/right), Y axis (up/down)
 and the mouse wheel (scroll up/down).- 
Constructor SummaryConstructorsConstructorDescriptionMouseAxisTrigger(int mouseAxis, boolean negative) Create a newMouseAxisTrigger.
- 
Method SummaryModifier and TypeMethodDescriptionintgetName()booleanstatic intmouseAxisHash(int mouseAxis, boolean negative) intReturns the hash code for the trigger.
- 
Constructor Details- 
MouseAxisTriggerpublic MouseAxisTrigger(int mouseAxis, boolean negative) Create a newMouseAxisTrigger.- Parameters:
- mouseAxis- Mouse axis. See AXIS_*** constants in- MouseInput
- negative- True if listen to negative axis events, false if listen to positive axis events.
 
 
- 
- 
Method Details- 
getMouseAxispublic int getMouseAxis()
- 
isNegativepublic boolean isNegative()
- 
getName
- 
mouseAxisHashpublic static int mouseAxisHash(int mouseAxis, boolean negative) 
- 
triggerHashCodepublic int triggerHashCode()Description copied from interface:TriggerReturns the hash code for the trigger.- Specified by:
- triggerHashCodein interface- Trigger
- Returns:
- the hash code for the trigger.
 
 
-