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

on a multi-monitor desktop, scrolling is hard #10

Open
timo opened this issue Mar 12, 2017 · 6 comments
Open

on a multi-monitor desktop, scrolling is hard #10

timo opened this issue Mar 12, 2017 · 6 comments

Comments

@timo
Copy link

timo commented Mar 12, 2017

i'm playing the game on my right monitor, so i can't edge-scroll to the left. i'd have to move my hands to the arrow keys ... ugh.

may i suggest dragging with the middle mouse button, or with the left mouse button while holding down the space bar?

thanks

@linleyh
Copy link
Owner

linleyh commented Mar 13, 2017

Middle-mouse-button scrolling does make sense. I'll look into it.

@timo
Copy link
Author

timo commented Mar 14, 2017

i just tested it and it works almost perfectly. the only thing i'd still change is to deactivate edge-of-screen scrolling while you're middle-click-dragging :)

@linleyh
Copy link
Owner

linleyh commented Mar 14, 2017

Good point! I've fixed that.

I've also added an init.txt option (add the line
capture_mouse
to init.txt) which may fix the problem with fullscreen on multi-monitor setups; it tries to lock the mouse to the game's display using al_grab_mouse(). I've made this an option rather than the default as some players may prefer the existing behaviour.

@linleyh linleyh closed this as completed Mar 15, 2017
@timo
Copy link
Author

timo commented Mar 15, 2017

capture_mouse is a good first step, but it'd be even better if it were only active during parts where accidentally leaving the window is A Bad Thing. During normal gameplay it'd be bad if i accidentally clicked outside the window (because it's common for things i want to click at to move around near the edge of the screen). however, when i'm in a menu (like game type selection, level select, or when i press esc during gameplay) it'd be fine for the mouse to leave the window.

@linleyh linleyh reopened this Mar 16, 2017
@linleyh
Copy link
Owner

linleyh commented Mar 16, 2017

Okay, that makes sense and shouldn't be hard. Maybe it's time for me to buy another monitor!

@linleyh
Copy link
Owner

linleyh commented Mar 16, 2017

... just adding some code to do this.

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

2 participants