use of org.terasology.input.events.MouseAxisEvent.MouseAxis in project Terasology by MovingBlocks.
the class LocalPlayerSystem method onMouseMove.
@ReceiveEvent(components = CharacterComponent.class)
public void onMouseMove(MouseAxisEvent event, EntityRef entity) {
MouseAxis axis = event.getMouseAxis();
if (axis == MouseAxis.X) {
lookYawDelta = event.getValue();
} else if (axis == MouseAxis.Y) {
lookPitchDelta = event.getValue();
}
event.consume();
}
Aggregations