Issue with zoom in / zoom out camera using orthographic

Hello all,
I have the issue when handling zoom in/ out when using orthographic.

  • I following orthographic to add zoom camera for an object. But I’m stucking when handling it. It like image bellow:
    image
  • I have added action scroll_up (to zoom in) & scroll_down (to zoom out). And handle it as:
    image
    image
    => I can’t zoom camera when scroll mouse. Who can help me with this issue?
    Thanks.

I don’t think scroll events have a pressed and released state.

I see the example of Orthographic using scroll events have a pressed and released state

I have modify on project example of Orthographic. It work normal, but I dont known the cause root why on my project it not work.

Hmm, hard to tell… Start by adding a print(action_id) at top of on_input() to see all incoming events. Or add a breakpoint with the debugger. Do you get any scroll events at all?

I get scroll mouse events
image

No idea what’s wrong then. Zip the project and share it so I can take a look.

Did you change the projection to fixed instead of default?