public class MouseLook extends QuickEntity implements KeyListener, MouseListener
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
mouselock |
protected float |
sensitivity |
protected boolean |
skip |
protected Key |
unlockKey |
engine, name, NAME_UNTITLED_ENTITY, parent| Constructor and Description |
|---|
MouseLook(float sensitivity) |
MouseLook(float sensitivity,
Key unlockKey) |
| Modifier and Type | Method and Description |
|---|---|
void |
attached()
Called when an Entity gets attached to an scenegraph
|
protected void |
centerMouse(InputAdapter input) |
void |
onAction(KeyEvent event)
When the trigger as triggered.
|
void |
onAction(MouseEvent event) |
protected void |
registerListener() |
boxed, getTransform, removed, render, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, setEngine, setParentgetEngine, setEngineprotected float sensitivity
protected boolean mouselock
protected Key unlockKey
protected boolean skip
public MouseLook(float sensitivity)
public MouseLook(float sensitivity,
Key unlockKey)
public void attached()
Entityattached in interface Entityattached in class QuickEntityEntity.attached()protected void registerListener()
public void onAction(KeyEvent event)
KeyListeneronAction in interface KeyListenerevent - The KeyEventpublic void onAction(MouseEvent event)
onAction in interface MouseListenerprotected void centerMouse(InputAdapter input)
Copyright © 2014. All rights reserved.