Don't allow cursor move outer window borders during the game
Don't allow cursor move outer window borders during the game
In windowed mode don't allow cursor move outer window borders during the game. When a player pressed <Esc> key and dialog popuped then restriction could be removed. This will help players to avoid shouting at the top of one's voice during the battle.
- Balthazar
- Moderator
- Posts: 2055
- Joined: Wed Nov 01, 2006 4:31 pm
- Location: Russian Federation
- Contact:
Re: Don't allow cursor move outer window borders during the game
Windowed mode is mostly for debug purposes, so locking mouse is not the point rignt now. Mouse fixing can be add as option later.
Re: Don't allow cursor move outer window borders during the game
I would find it really annoying. If possible, why not for an option.
Damien Gerard
Ta3d & Yuni Developer
Ta3d & Yuni Developer
Re: Don't allow cursor move outer window borders during the game
LOL, because this is my lovely mode cause i can combine it with my job, icq consulting & just controlling what happens else on the desktopBalthazar wrote:Windowed mode is mostly for debug purposes, so locking mouse is not the point rignt now. Mouse fixing can be add as option later.
Also i've read the same request made by some guy on your russian forum. So, there are two of us
milipili , what exaclty is annoying? If my request would be implemented or current state? If the former, i can't imagine how this can be ever comfortable without it.
Re: Don't allow cursor move outer window borders during the game
It would be annoying for me to lock the mouse because I use the windowed mode when coding in TA3D. Event without talking about developing, I've got several displays and the fullscreen mode of TA3D is simply not good enough (like nearly all other 3D apps on OS X actually....)
Instead of locking, I would prefer that the app does not continue to handle mouse events when the cursor is outside the window, but this is not quite easy to do.
Instead of locking, I would prefer that the app does not continue to handle mouse events when the cursor is outside the window, but this is not quite easy to do.
Damien Gerard
Ta3d & Yuni Developer
Ta3d & Yuni Developer
- Balthazar
- Moderator
- Posts: 2055
- Joined: Wed Nov 01, 2006 4:31 pm
- Location: Russian Federation
- Contact:
Re: Don't allow cursor move outer window borders during the game
milipili - the most quick way to solve this is to add option for locking/unlocking mouse. It can be done even throught TA3D console, without need of adding more lines in the option menu.
- zuzuf
- Administrateur - Site Admin
- Posts: 3281
- Joined: Mon Oct 30, 2006 8:49 pm
- Location: Toulouse, France
- Contact:
Re: Don't allow cursor move outer window borders during the game
it has been implemented in 0.6 for a while now , you can enable/disable input grabbing from the options menu or with a console command :
- enable grab_inputs
- disable grab_inputs
=>;-D Penguin Powered
Re: Don't allow cursor move outer window borders during the game
thanks! by the way, i recalled how this feature is officially called: clip mouse cursor in a window.
Re: Don't allow cursor move outer window borders during the game
Oo I did not know ....
is there a list of all available commands somewhere ?
is there a list of all available commands somewhere ?
Damien Gerard
Ta3d & Yuni Developer
Ta3d & Yuni Developer
- zuzuf
- Administrateur - Site Admin
- Posts: 3281
- Joined: Mon Oct 30, 2006 8:49 pm
- Location: Toulouse, France
- Contact:
Re: Don't allow cursor move outer window borders during the game
somewhere in wiki and/or doc but it's not up to date. For the whole list of commands in 0.6 the only reference is the file in source code that handle them ...
=>;-D Penguin Powered
Re: Don't allow cursor move outer window borders during the game
Ah... This one... :p
I think that some code refactoring would be a good thing... I will take a glance at this.
I think that some code refactoring would be a good thing... I will take a glance at this.
Damien Gerard
Ta3d & Yuni Developer
Ta3d & Yuni Developer
Re: Don't allow cursor move outer window borders during the game
Well, i have to admit you made not exactly what i meant. I told about clipping mouse input during gameplay only. The main & the only positive moment in clipping mouse is to avoid suddenly clicking with a mouse outside of a main window & loosing a focus. And i specifically told that when i press <Escape> key you may (i actually want) disable mouse clipping, because usually in this mode a want to make a break, move/minimize window etc. So, in start menu there is also no need to clip mouse in a window. If you like to clip mouse statically for the hole app run you may introduce three-way switcher?
I very hope you share my thoughts. Just try to play in windowed mode any hot game.
I very hope you share my thoughts. Just try to play in windowed mode any hot game.
- zuzuf
- Administrateur - Site Admin
- Posts: 3281
- Joined: Mon Oct 30, 2006 8:49 pm
- Location: Toulouse, France
- Contact:
Re: Don't allow cursor move outer window borders during the game
i wonder why I didn't do it earlier since I run TA3D in windowed mode when I need to test my modifications . Now it's done
=>;-D Penguin Powered
Re: Don't allow cursor move outer window borders during the game
/:^]
Agreement, some time TA3D lock mouse in a little space.
And, When load a game, couldn't exchange to another app....
Agreement, some time TA3D lock mouse in a little space.
And, When load a game, couldn't exchange to another app....
Re: Don't allow cursor move outer window borders during the game
I planned to use a thread pool for that, instead of blocking the main thread (which is responsible for managing system events). It is already ready in libyuni but I would like to make more checks before. (Yuni::Job::QueueService for devs interested in it)And, When load a game, couldn't exchange to another app....
Damien Gerard
Ta3d & Yuni Developer
Ta3d & Yuni Developer
Re: Don't allow cursor move outer window borders during the game
Greeting!
/:^]
And, maybe a special thread for mouse/keyboard?
/:^]
And, maybe a special thread for mouse/keyboard?
Re: Don't allow cursor move outer window borders during the game
Here too, i often play in windowed mode (under Linux). Today, games often use less ressources than in full screen, and since the "menu" or "windows" key are often overrided by games, i not always can Tab between apps if one is a full screen game.
Who is online
Users browsing this forum: No registered users and 11 guests