compas-dev / compas_view2

Standalone viewer for COMPAS
https://compas.dev/compas_view2/
MIT License
6 stars 8 forks source link

Move mouse and key actions to controller #192

Closed ZacZhangzhuo closed 9 months ago

ZacZhangzhuo commented 9 months ago

What type of change is this?

@Licini

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

ZacZhangzhuo commented 9 months ago

Few questions below. Also when I run an example, it raise error on the mouse due to the changes, plz make sure all examples still works accordingly : ) image

fixed by changing the code in selector:

                    x = self.app.controller.mouse.last_pos.x()
                    y = self.app.controller.mouse.last_pos.y()
ZacZhangzhuo commented 9 months ago

request a merge for the next step :) @Licini