taichi-dev / taichi_three

A soft renderer based on Taichi (work in progress)
https://t3.142857.red/
MIT License
223 stars 24 forks source link

Zoom control not working when calling gui.get_events() outside the scene. #47

Closed xuhao1 closed 3 years ago

xuhao1 commented 3 years ago

If callling gui.get_events() outside the scene for custom keyboard event handling, the zoom controlling by mouse will not working. Looks like the gui.get_events() will take all events. For fixing it, I add "-" and "=" key for in pull reques https://github.com/taichi-dev/taichi_three/pull/46.