Skip to content

Mouse support #65

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
david-pfx opened this issue Apr 15, 2023 · 1 comment
Open

Mouse support #65

david-pfx opened this issue Apr 15, 2023 · 1 comment
Labels
commands The commands that can be used in rules events like those used in the SOUNDS section: create/move/destroy objects, etc. Feedback for players! feature New feature or request input keyboard, mouse, touch, ... devices, gameplay and accessibility mobile Concerns the interface for mobiles question Further information is requested syntax/language Concerns the language or its syntax

Comments

@david-pfx
Copy link

david-pfx commented Apr 15, 2023

PS+ has mouse support which is fairly intensive: left and right buttons, down, up and drag. Each mouse event drops an object, which is rather different from how the keyboard works.

The code to do this is quite large and is embedded in the input subsystem, but not clearly delineated. P:S has been refactored, to the point where a merge is challenging, perhaps even impossible.

My preferred approach in PuzzleFab is to use the mouse to generate input events, like keystrokes, on the every object occupying the clicked location. Simpler code, but not at all PS+ compatible.

Thoughts?

@ClementSparrow ClementSparrow added feature New feature or request question Further information is requested mobile Concerns the interface for mobiles syntax/language Concerns the language or its syntax commands The commands that can be used in rules input keyboard, mouse, touch, ... devices, gameplay and accessibility events like those used in the SOUNDS section: create/move/destroy objects, etc. Feedback for players! labels Apr 15, 2023
@ClementSparrow
Copy link
Owner

ClementSparrow commented Apr 15, 2023

The way PS and P:S are currently implemented, it seems much easier to do it like PS+: adding new objects. But I have not played with mouse support in PS+ so I'm not sure what is the best solution for game designers. So, PS+ has only 4 click objects (two by mouse buttons, times two states pressed/released) and one drag object with motion direction? Or 4 drag objects?

Another approach would be to mix objects and states, and to use tags to specify directions or button or state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
commands The commands that can be used in rules events like those used in the SOUNDS section: create/move/destroy objects, etc. Feedback for players! feature New feature or request input keyboard, mouse, touch, ... devices, gameplay and accessibility mobile Concerns the interface for mobiles question Further information is requested syntax/language Concerns the language or its syntax
Projects
None yet
Development

No branches or pull requests

2 participants