Skip to content
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

Left+right clicking should expand like middle click #9

Open
Namdrib opened this issue Jul 26, 2018 · 3 comments
Open

Left+right clicking should expand like middle click #9

Namdrib opened this issue Jul 26, 2018 · 3 comments
Assignees

Comments

@Namdrib
Copy link
Owner

Namdrib commented Jul 26, 2018

Some notes on behaviour:

  • this should only trigger the opening of neighbours if the number of adjacent flags is equal to the cell's number, AND

  • this should trigger if both left and right mouse buttons are down and one of them is let go

  • this is still valid if both left and right leave the intended CellIcon and return over it again

Rough plan:

  • record left/right is down upon mouse press
  • record left/right is up upon mouse leave
  • record left/right is down upon mouse enter if it is still down
  • trigger open surrounding upon left/right release if the other is still down
@Namdrib Namdrib self-assigned this Jul 26, 2018
@Namdrib
Copy link
Owner Author

Namdrib commented Jul 26, 2018

First normal left click buggy - doesn't do anything

@Namdrib
Copy link
Owner Author

Namdrib commented Jul 26, 2018

Note: After chording, treat all mouse buttons as not being pressed. e.g. left click down -> full cycle right -> treat as left and right back up

@Namdrib
Copy link
Owner Author

Namdrib commented Sep 25, 2018

Bug: the game currently doesn't remember the state of mouse clicks/presses between CellIcons.
e.g. In the following image, right-mouse-down at (1) then (while right mouse still down) left-mouse-down at (2) doesn't correctly trigger a chording action at position (2).
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant