|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jagatoo.input.handlers.InputHandler<FPIHInputAction>
org.xith3d.input.FirstPersonInputHandler
public class FirstPersonInputHandler
This class handles the Keyboard and Mouse input for first person shooter like Views (EGO-perspective).
| Field Summary | |
|---|---|
static float |
DEFAULT_MAX_ANGLE_UP_DOWN
|
static float |
DEFAULT_MOUSE_X_SPEED
|
static boolean |
DEFAULT_MOUSE_Y_INVERTED
|
static float |
DEFAULT_MOUSE_Y_SPEED
|
static float |
DEFAULT_MOVEMENT_BACKWARD_SPEED
|
static float |
DEFAULT_MOVEMENT_FORWARD_SPEED
|
static float |
DEFAULT_MOVEMENT_SIDEWARD_SPEED
|
| Fields inherited from class org.jagatoo.input.handlers.InputHandler |
|---|
CONTROLLERS_SUSPENDED, FIRST_USER_SUSPEND_FLAG, KEYBOARD_SUSPENDED, MOUSE_BUTTONS_SUSPENDED, MOUSE_MOVEMENT_SUSPENDED, MOUSE_WHEEL_SUSPENDED, suspendMask |
| Constructor Summary | |
|---|---|
FirstPersonInputHandler(Transformable view,
int resolutionX,
int resolutionY)
Creates a new FirstPersonInputHandler. |
|
FirstPersonInputHandler(Transformable view,
int resolutionX,
int resolutionY,
float mouseXSpeed,
float mouseYSpeed,
boolean mouseYInverted,
float movementSpeed)
Creates a new FirstPersonInputHandler. |
|
FirstPersonInputHandler(Transformable view,
int resolutionX,
int resolutionY,
float mouseXSpeed,
float mouseYSpeed,
float movementSpeed)
Creates a new FirstPersonInputHandler. |
|
FirstPersonInputHandler(Transformable view,
int resolutionX,
int resolutionY,
float mouseXSpeed,
float mouseYSpeed,
float movementSpeedForeward,
float movementSpeedBackward,
float movementSpeedSideward)
Creates a new FirstPersonInputHandler. |
|
FirstPersonInputHandler(Transformable view,
int resolutionX,
int resolutionY,
FPIHConfig config)
Creates a new FirstPersonInputHandler. |
|
FirstPersonInputHandler(Transformable view,
org.openmali.types.twodee.Sized2iRO resolution)
Creates a new FirstPersonInputHandler. |
|
FirstPersonInputHandler(Transformable view,
org.openmali.types.twodee.Sized2iRO resolution,
float mouseXSpeed,
float mouseYSpeed,
boolean yInverted,
float movementSpeed)
Creates a new FirstPersonInputHandler. |
|
FirstPersonInputHandler(Transformable view,
org.openmali.types.twodee.Sized2iRO resolution,
float mouseXSpeed,
float mouseYSpeed,
float movementSpeed)
Creates a new FirstPersonInputHandler. |
|
FirstPersonInputHandler(Transformable view,
org.openmali.types.twodee.Sized2iRO resolution,
float mouseXSpeed,
float mouseYSpeed,
float movementSpeedForeward,
float movementSpeedBackward,
float movementSpeedSideward)
Creates a new FirstPersonInputHandler. |
|
FirstPersonInputHandler(Transformable view,
org.openmali.types.twodee.Sized2iRO resolution,
FPIHConfig config)
Creates a new FirstPersonInputHandler. |
|
| Method Summary | |
|---|---|
void |
addAvatar(AvatarTransform at)
Adds an Avatar to the FPIH, An Avatar always follows the main Transformable (View) possibly with an offset. |
void |
addMovementListener(MovementListener l)
Adds a MovementListener to the List. |
void |
applyConfig(FPIHConfig config)
Applies the given FPIHConfig to this FirstPersonInputHandler. |
static FirstPersonInputHandler |
createDefault(Transformable view,
int resolutionX,
int resolutionY)
Creates a new FirstPersonInputHandler and applies default key-bindings. |
static FirstPersonInputHandler |
createDefault(Transformable view,
int resolutionX,
int resolutionY,
boolean mouseYInverted)
Creates a new FirstPersonInputHandler and applies default key-bindings. |
static FirstPersonInputHandler |
createDefault(Transformable view,
int resolutionX,
int resolutionY,
float mouseXSpeed,
float mouseYSpeed,
float movementSpeed)
Creates a new FirstPersonInputHandler and applies default key-bindings. |
static FirstPersonInputHandler |
createDefault(Transformable view,
int resolutionX,
int resolutionY,
float mouseXSpeed,
float mouseYSpeed,
float movementSpeedForeward,
float movementSpeedBackward,
float movementSpeedSideward)
Creates a new FirstPersonInputHandler and applies default key-bindings. |
static FirstPersonInputHandler |
createDefault(Transformable view,
int resolutionX,
int resolutionY,
FPIHConfig config)
Creates a new FirstPersonInputHandler and applies default key-bindings. |
static FirstPersonInputHandler |
createDefault(Transformable view,
org.openmali.types.twodee.Sized2iRO resolution)
Creates a new FirstPersonInputHandler and applies default key-bindings. |
static FirstPersonInputHandler |
createDefault(Transformable view,
org.openmali.types.twodee.Sized2iRO resolution,
boolean mouseYInverted)
Creates a new FirstPersonInputHandler and applies default key-bindings. |
static FirstPersonInputHandler |
createDefault(Transformable view,
org.openmali.types.twodee.Sized2iRO resolution,
float mouseXSpeed,
float mouseYSpeed,
boolean mouseYInverted,
float movementSpeed)
Creates a new FirstPersonInputHandler and applies default key-bindings. |
static FirstPersonInputHandler |
createDefault(Transformable view,
org.openmali.types.twodee.Sized2iRO resolution,
float mouseXSpeed,
float mouseYSpeed,
float movementSpeed)
Creates a new FirstPersonInputHandler and applies default key-bindings. |
static FirstPersonInputHandler |
createDefault(Transformable view,
org.openmali.types.twodee.Sized2iRO resolution,
float mouseXSpeed,
float mouseYSpeed,
float movementSpeedForeward,
float movementSpeedBackward,
float movementSpeedSideward)
Creates a new FirstPersonInputHandler and applies default key-bindings. |
static FirstPersonInputHandler |
createDefault(Transformable view,
org.openmali.types.twodee.Sized2iRO resolution,
FPIHConfig config)
Creates a new FirstPersonInputHandler and applies default key-bindings. |
protected FPIHInputStatesManager |
createInputStatesManager(org.jagatoo.input.managers.InputBindingsManager<FPIHInputAction> bindingsManager)
|
void |
extractConfig(FPIHConfig config)
Extracts a FPIHConfig from this FirstPersonInputHandler. |
void |
flipMouseYAxis()
Flips the mouse-y-axis movement. |
FPIHInputBindingsManager |
getBindingsManager()
|
float |
getDiscreteThirdPersonStepSize()
|
float |
getMaxThirdPersonDistance()
|
float |
getMinThirdPersonDistance()
|
float |
getMouseXSpeed()
|
float |
getMouseYSpeed()
|
FPIHMovementConstraints |
getMovementConstraints()
|
float |
getMovementSpeed()
|
float |
getMovementSpeedBackward()
|
float |
getMovementSpeedForward()
|
float |
getMovementSpeedSideward()
|
FPIHPhysics |
getPhysicsObject()
|
float |
getPlayerCrouchSizeRegression()
|
FPIHInputStatesManager |
getStatesManager()
|
org.openmali.vecmath2.Vector3f |
getThirdPersonOffset()
|
Transformable |
getTransformNode()
|
org.openmali.spatial.AxisIndicator |
getUpAxis()
|
View |
getView()
|
void |
removeAvatar(AvatarTransform at)
Removes an Avatar from the FPIH, An Avatar always follows the main Transformable (View) possibly with an offset. |
void |
removeMovementListener(MovementListener l)
Removes a MovementListener from the List. |
void |
setDiscreteThirdPersonStepSize(float stepSize)
Sets the stepsize of discrete third-person offset manipulation. |
void |
setInputSystem(org.jagatoo.input.InputSystem inputSystem)
|
void |
setMaxThirdPersonDistance(float maxDist)
Sets the maximum third-person distance. |
void |
setMinThirdPersonDistance(float minDist)
Sets the minimum third-person distance. |
void |
setMouseXSpeed(float speedX)
Sets the mouse movement speed for the x-axis. |
void |
setMouseYSpeed(float speedY)
Sets the mouse movement speed for the y-axis. |
void |
setMovementConstraints(FPIHMovementConstraints constraints)
Sets the constraints to be used by this FirstPersonInputHandler. |
void |
setMovementSpeed(float speed)
Sets the speed the player moves by forward and backward. |
void |
setMovementSpeedBackward(float speed)
Sets the speed the player moves by backward. |
void |
setMovementSpeedForward(float speed)
Sets the speed the player moves by forward. |
void |
setMovementSpeedSideward(float speed)
Sets the speed the player moves by sideward. |
void |
setPhysicsObject(FPIHPhysics physicsObject)
|
void |
setPlayerCrouchSizeRegression(float sizeDelta)
Sets the value the view will we lowered with the player crouches. |
boolean |
setSuspendMask(int suspendMask)
|
void |
setThirdPersonDistance(float dist)
|
void |
setThirdPersonOffset(float tpOffsetX,
float tpOffsetY,
float tpOffsetZ)
Sets the third-person-offset in view-local coordinates. |
void |
setThirdPersonOffset(float tpDirectionX,
float tpDirectionY,
float tpDirectionZ,
float distance)
Sets the third-person-offset in view-local coordinates. |
void |
setThirdPersonOffset(org.openmali.vecmath2.Tuple3f tpOffset)
Sets the third-person-offset in view-local coordinates. |
void |
setThirdPersonOffset(org.openmali.vecmath2.Tuple3f tpDirection,
float distance)
Sets the third-person-offset in view-local coordinates. |
void |
setUpAxis(org.openmali.spatial.AxisIndicator upAxis)
Sets the up-axis to use. |
void |
startCrouch()
Makes the player crouch. |
boolean |
startJump()
Called, when the player jumped. |
void |
startMovement(FPIHInputAction command)
Called when the player starts to move into any direction. |
void |
stopCrouch()
Makes the player stand up from crouch. |
void |
stopMovement(FPIHInputAction command)
Called when the player stopps to move into any direction. |
void |
update(long nanoSeconds,
float seconds,
long nanoFrame,
float frameSeconds)
|
protected void |
updateAvatars(long gameMicros,
long frameMicros,
Transformable view,
org.openmali.vecmath2.Vector3f viewTranslation,
float rotX,
float rotY,
org.openmali.vecmath2.Vector3f thirdPersonOffset)
This transforms additional Transformables to follow the main Transformable (View). |
void |
updateViewInverse()
Calculates internal angle-values from the current View-rotation. |
| Methods inherited from class org.jagatoo.input.handlers.InputHandler |
|---|
areControllersSuspended, attachToSourceWindow, getAttachedSourceWindow, getInputSystem, getSuspendMask, isKeyboardSuspended, isMouseButtonsSuspended, isMouseMovementSuspended, isMouseSmoothingEnabled, isMouseSuspended, isMouseWheelSuspended, isSuspended, setControllersSuspended, setKeyboardSuspended, setMouseButtonsSuspended, setMouseMovementSuspended, setMouseSmoothingEnabled, setMouseSuspended, setMouseWheelSuspended, setSuspended, update, updateInputStates |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final float DEFAULT_MOUSE_X_SPEED
public static final float DEFAULT_MOUSE_Y_SPEED
public static final boolean DEFAULT_MOUSE_Y_INVERTED
public static final float DEFAULT_MOVEMENT_FORWARD_SPEED
public static final float DEFAULT_MOVEMENT_BACKWARD_SPEED
public static final float DEFAULT_MOVEMENT_SIDEWARD_SPEED
public static final float DEFAULT_MAX_ANGLE_UP_DOWN
| Constructor Detail |
|---|
public FirstPersonInputHandler(Transformable view,
int resolutionX,
int resolutionY,
float mouseXSpeed,
float mouseYSpeed,
float movementSpeedForeward,
float movementSpeedBackward,
float movementSpeedSideward)
view - the View to be used.resolutionX - the Canvas3D-width to take as calculation basis for resolution-independent turn speedresolutionY - the Canvas3D-width to take as calculation basis for resolution-independent turn speedmouseXSpeed - the new x-axis mouse speedmouseYSpeed - the new y-axis mouse speedmovementSpeedForeward - the new foreward movement speedmovementSpeedBackward - the new backward movement speedmovementSpeedSideward - the new sideward movement speed
public FirstPersonInputHandler(Transformable view,
int resolutionX,
int resolutionY,
float mouseXSpeed,
float mouseYSpeed,
float movementSpeed)
view - the View to be used.resolutionX - the Canvas3D-width to take as calculation basis for resolution-independent turn speedresolutionY - the Canvas3D-width to take as calculation basis for resolution-independent turn speedmouseXSpeed - the new x-axis mouse speedmouseYSpeed - the new y-axis mouse speedmovementSpeed - the new movement speed
public FirstPersonInputHandler(Transformable view,
int resolutionX,
int resolutionY,
float mouseXSpeed,
float mouseYSpeed,
boolean mouseYInverted,
float movementSpeed)
view - the View to be used.resolutionX - the Canvas3D-width to take as calculation basis for resolution-independent turn speedresolutionY - the Canvas3D-width to take as calculation basis for resolution-independent turn speedmouseXSpeed - the new x-axis mouse speedmouseYSpeed - the new y-axis mouse speedmouseYInverted - movementSpeed - the new movement speed
public FirstPersonInputHandler(Transformable view,
org.openmali.types.twodee.Sized2iRO resolution,
float mouseXSpeed,
float mouseYSpeed,
float movementSpeedForeward,
float movementSpeedBackward,
float movementSpeedSideward)
view - the View to be used.resolution - the Canvas3D to take as calculation basis for resolution-independent turn speedmouseXSpeed - the new x-axis mouse speedmouseYSpeed - the new y-axis mouse speedmovementSpeedForeward - the new foreward movement speedmovementSpeedBackward - the new backward movement speedmovementSpeedSideward - the new sideward movement speed
public FirstPersonInputHandler(Transformable view,
org.openmali.types.twodee.Sized2iRO resolution,
float mouseXSpeed,
float mouseYSpeed,
float movementSpeed)
view - the View to be used.resolution - the Canvas3D to take as calculation basis for resolution-independent turn speedmouseXSpeed - the new x-axis mouse speedmouseYSpeed - the new y-axis mouse speedmovementSpeed - the new movement speed
public FirstPersonInputHandler(Transformable view,
org.openmali.types.twodee.Sized2iRO resolution,
float mouseXSpeed,
float mouseYSpeed,
boolean yInverted,
float movementSpeed)
view - the View to be used.resolution - the Canvas3D to take as calculation basis for resolution-independent turn speedmouseXSpeed - the new x-axis mouse speedmouseYSpeed - the new y-axis mouse speedyInverted - movementSpeed - the new movement speed
public FirstPersonInputHandler(Transformable view,
int resolutionX,
int resolutionY)
view - the View to be used.resolutionX - the Canvas3D-width to take as calculation basis for resolution-independent turn speedresolutionY - the Canvas3D-width to take as calculation basis for resolution-independent turn speed
public FirstPersonInputHandler(Transformable view,
org.openmali.types.twodee.Sized2iRO resolution)
view - the View to be used.resolution - the Canvas to take as calculation basis for resolution-independent turn speed
public FirstPersonInputHandler(Transformable view,
int resolutionX,
int resolutionY,
FPIHConfig config)
view - the View to be used.resolutionX - the Canvas3D-width to take as calculation basis for resolution-independent turn speedresolutionY - the Canvas3D-width to take as calculation basis for resolution-independent turn speedconfig -
public FirstPersonInputHandler(Transformable view,
org.openmali.types.twodee.Sized2iRO resolution,
FPIHConfig config)
view - the View to be used.resolution - the Canvas to take as calculation basis for resolution-independent turn speedconfig - | Method Detail |
|---|
public void setUpAxis(org.openmali.spatial.AxisIndicator upAxis)
AxisIndicator.POSITIVE_Y_AXIS.
upAxis - public final org.openmali.spatial.AxisIndicator getUpAxis()
AxisIndicator.POSITIVE_Y_AXIS.public final Transformable getTransformNode()
public final View getView()
public void addMovementListener(MovementListener l)
l - the new MovmentListener to addpublic void removeMovementListener(MovementListener l)
l - the MovmentListener to be removedpublic void startMovement(FPIHInputAction command)
command - the KeyCommand, that invoked this eventpublic void stopMovement(FPIHInputAction command)
command - the KeyCommand, that invoked this eventpublic void startCrouch()
public void stopCrouch()
public boolean startJump()
public void updateViewInverse()
public final FPIHInputBindingsManager getBindingsManager()
getBindingsManager in class org.jagatoo.input.handlers.InputHandler<FPIHInputAction>public final FPIHInputStatesManager getStatesManager()
getStatesManager in class org.jagatoo.input.handlers.InputHandler<FPIHInputAction>
public void setThirdPersonOffset(float tpDirectionX,
float tpDirectionY,
float tpDirectionZ,
float distance)
tpDirectionX - tpDirectionY - tpDirectionZ - distance - public void setThirdPersonDistance(float dist)
public void setThirdPersonOffset(float tpOffsetX,
float tpOffsetY,
float tpOffsetZ)
tpOffsetX - tpOffsetY - tpOffsetZ -
public void setThirdPersonOffset(org.openmali.vecmath2.Tuple3f tpDirection,
float distance)
tpDirection - public void setThirdPersonOffset(org.openmali.vecmath2.Tuple3f tpOffset)
tpOffset - public final org.openmali.vecmath2.Vector3f getThirdPersonOffset()
public void setMinThirdPersonDistance(float minDist)
minDist - public final float getMinThirdPersonDistance()
public void setMaxThirdPersonDistance(float maxDist)
maxDist - public final float getMaxThirdPersonDistance()
public void setDiscreteThirdPersonStepSize(float stepSize)
stepSize - public final float getDiscreteThirdPersonStepSize()
public void setMouseXSpeed(float speedX)
speedX - the new speed for the x-axispublic final float getMouseXSpeed()
public void setMouseYSpeed(float speedY)
speedY - the new speed for the y-axispublic final float getMouseYSpeed()
public void flipMouseYAxis()
setMouseSpeedY( -getMouseSpeedY() );
public void setMovementSpeed(float speed)
speed - the new moving speedpublic final float getMovementSpeed()
public void setMovementSpeedForward(float speed)
speed - the new (forward) moving speedpublic final float getMovementSpeedForward()
public void setMovementSpeedBackward(float speed)
speed - the new (backward) moving speedpublic final float getMovementSpeedBackward()
public void setMovementSpeedSideward(float speed)
speed - the new (sideward) moving speedpublic final float getMovementSpeedSideward()
public void applyConfig(FPIHConfig config)
FPIHConfig to this FirstPersonInputHandler.
The config instance is stored in this object and is notified of any change.
config - public void extractConfig(FPIHConfig config)
FPIHConfig from this FirstPersonInputHandler.
config - public void setPlayerCrouchSizeRegression(float sizeDelta)
sizeDelta - the value the view will be lowered on crouchpublic float getPlayerCrouchSizeRegression()
public void setMovementConstraints(FPIHMovementConstraints constraints)
FirstPersonInputHandler.
constraints - public final FPIHMovementConstraints getMovementConstraints()
FirstPersonInputHandler.public boolean setSuspendMask(int suspendMask)
setSuspendMask in class org.jagatoo.input.handlers.InputHandler<FPIHInputAction>public void addAvatar(AvatarTransform at)
at - public void removeAvatar(AvatarTransform at)
at - the avatar Transformablepublic void setPhysicsObject(FPIHPhysics physicsObject)
public final FPIHPhysics getPhysicsObject()
protected void updateAvatars(long gameMicros,
long frameMicros,
Transformable view,
org.openmali.vecmath2.Vector3f viewTranslation,
float rotX,
float rotY,
org.openmali.vecmath2.Vector3f thirdPersonOffset)
gameMicros - view - rotX - rotY - thirdPersonOffset -
public void update(long nanoSeconds,
float seconds,
long nanoFrame,
float frameSeconds)
throws org.jagatoo.input.InputSystemException
update in class org.jagatoo.input.handlers.InputHandler<FPIHInputAction>org.jagatoo.input.InputSystemExceptionpublic void setInputSystem(org.jagatoo.input.InputSystem inputSystem)
setInputSystem in class org.jagatoo.input.handlers.InputHandler<FPIHInputAction>protected FPIHInputStatesManager createInputStatesManager(org.jagatoo.input.managers.InputBindingsManager<FPIHInputAction> bindingsManager)
createInputStatesManager in class org.jagatoo.input.handlers.InputHandler<FPIHInputAction>
public static final FirstPersonInputHandler createDefault(Transformable view,
int resolutionX,
int resolutionY,
float mouseXSpeed,
float mouseYSpeed,
float movementSpeedForeward,
float movementSpeedBackward,
float movementSpeedSideward)
view - the View to be used.resolutionX - the Canvas3D-width to take as calculation basis for resolution-independent turn speedresolutionY - the Canvas3D-width to take as calculation basis for resolution-independent turn speedmouseXSpeed - the new x-axis mouse speedmouseYSpeed - the new y-axis mouse speedmovementSpeedForeward - the new foreward movement speedmovementSpeedBackward - the new backward movement speedmovementSpeedSideward - the new sideward movement speed
public static final FirstPersonInputHandler createDefault(Transformable view,
int resolutionX,
int resolutionY,
float mouseXSpeed,
float mouseYSpeed,
float movementSpeed)
view - the View to be used.resolutionX - the Canvas3D-width to take as calculation basis for resolution-independent turn speedresolutionY - the Canvas3D-width to take as calculation basis for resolution-independent turn speedmouseXSpeed - the new x-axis mouse speedmouseYSpeed - the new y-axis mouse speedmovementSpeed - the new movement speed
public static final FirstPersonInputHandler createDefault(Transformable view,
org.openmali.types.twodee.Sized2iRO resolution,
float mouseXSpeed,
float mouseYSpeed,
float movementSpeedForeward,
float movementSpeedBackward,
float movementSpeedSideward)
view - the View to be used.resolution - the Canvas3D to take as calculation basis for resolution-independent turn speedmouseXSpeed - the new x-axis mouse speedmouseYSpeed - the new y-axis mouse speedmovementSpeedForeward - the new foreward movement speedmovementSpeedBackward - the new backward movement speedmovementSpeedSideward - the new sideward movement speed
public static final FirstPersonInputHandler createDefault(Transformable view,
org.openmali.types.twodee.Sized2iRO resolution,
float mouseXSpeed,
float mouseYSpeed,
float movementSpeed)
view - the View to be used.resolution - the Canvas3D to take as calculation basis for resolution-independent turn speedmouseXSpeed - the new x-axis mouse speedmouseYSpeed - the new y-axis mouse speedmovementSpeed - the new movement speed
public static final FirstPersonInputHandler createDefault(Transformable view,
org.openmali.types.twodee.Sized2iRO resolution,
float mouseXSpeed,
float mouseYSpeed,
boolean mouseYInverted,
float movementSpeed)
view - the View to be used.resolution - the Canvas3D to take as calculation basis for resolution-independent turn speedmouseXSpeed - the new x-axis mouse speedmouseYSpeed - the new y-axis mouse speedmouseYInverted - movementSpeed - the new movement speed
public static final FirstPersonInputHandler createDefault(Transformable view,
int resolutionX,
int resolutionY,
boolean mouseYInverted)
view - the View to be used.resolutionX - the Canvas3D-width to take as calculation basis for resolution-independent turn speedresolutionY - the Canvas3D-width to take as calculation basis for resolution-independent turn speedmouseYInverted -
public static final FirstPersonInputHandler createDefault(Transformable view,
int resolutionX,
int resolutionY)
view - the View to be used.resolutionX - the Canvas3D-width to take as calculation basis for resolution-independent turn speedresolutionY - the Canvas3D-width to take as calculation basis for resolution-independent turn speed
public static final FirstPersonInputHandler createDefault(Transformable view,
org.openmali.types.twodee.Sized2iRO resolution,
boolean mouseYInverted)
view - the View to be used.resolution - the Canvas to take as calculation basis for resolution-independent turn speedmouseYInverted -
public static final FirstPersonInputHandler createDefault(Transformable view,
org.openmali.types.twodee.Sized2iRO resolution)
view - the View to be used.resolution - the Canvas to take as calculation basis for resolution-independent turn speed
public static final FirstPersonInputHandler createDefault(Transformable view,
int resolutionX,
int resolutionY,
FPIHConfig config)
view - the View to be used.resolutionX - the Canvas3D-width to take as calculation basis for resolution-independent turn speedresolutionY - the Canvas3D-width to take as calculation basis for resolution-independent turn speedconfig -
public static final FirstPersonInputHandler createDefault(Transformable view,
org.openmali.types.twodee.Sized2iRO resolution,
FPIHConfig config)
view - the View to be used.resolution - the Canvas to take as calculation basis for resolution-independent turn speedconfig -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||