Skip to content

Commit

Permalink
add todo
Browse files Browse the repository at this point in the history
  • Loading branch information
svencc committed Jan 31, 2024
1 parent 5414f62 commit e5f2661
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ public void handleInputCommand(@NonNull final IsCommand<?> inputCommand) {
case ScrollCommand scrollCommand -> {
// log.info("ScrollCommand received: {} ({})", inputCommand.getClass().getSimpleName(), mapToScrollDirection(scrollCommand.getNanoTimedEvent().getEvent()));
// code to zoom in/out
this.getEntity().<PhysicCoreComponent>locateComponent(ComponentType.PhysicsCoreComponent).ifPresent(physicsCoreComponent -> {
if (scrollCommand.getNanoTimedEvent().getEvent().getDeltaY() > 0) {
// todo
} else if (scrollCommand.getNanoTimedEvent().getEvent().getDeltaY() < 0) {
// todo
}
});
}
case MouseDragCommand mouseDragCommand -> {
if (mouseDragCommand.getMouseButton().equals(MouseButton.SECONDARY)) {
Expand Down

0 comments on commit e5f2661

Please sign in to comment.