Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 10:32
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
6 registered members (AndrewAMD, alibaba, fairtrader, ozgur, TipmyPip, Quad), 604 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
restricting mouse movement inside windowed mode #72246
04/26/06 06:09
04/26/06 06:09
Joined: Aug 2005
Posts: 1,012
germany, dresden
ulf Offline OP
Serious User
ulf  Offline OP
Serious User

Joined: Aug 2005
Posts: 1,012
germany, dresden
i came across this again, i always develop in windowed mode to watch seds debug information and other things on my desktop. if you have a game where you need a mouse e.g. mouse_mode = 2 and you move the mouse over the border of the a6 window - wich will definitaley happen because the mouse is not restricted to that window. you will end up losing focus of the a6 window.

this is also true for games that use the mouse_force variables and have no cursor. when you set the resolution and move the mouse far enough and click you actually click somewhere on your desktop.

i would really like to have a engine variable like:

restrict_mouse_windowed that would not allow the mouse to move outside of the gamestudio a6 engine window size when running in windowed mode.

this problem is especially annoying when you make a rts type of game where you can scroll when the mouse is 1 pixel near the window border...

what do you think, i doubt there is a workaround yet?

Re: restricting mouse movement inside windowed mode [Re: ulf] #72247
04/26/06 16:19
04/26/06 16:19
Joined: Aug 2002
Posts: 681
Massachusetts, USA
Ichiro Offline
User
Ichiro  Offline
User

Joined: Aug 2002
Posts: 681
Massachusetts, USA
I'd also like such a feature. There is a workaround, but it's not pretty:

http://www.coniserver.net/ubbthreads/showflat.php/Cat/0/Number/590314/an//page/0/vc/1


Dejobaan Games - Bringing you quality video games for over 75 years.
Re: restricting mouse movement inside windowed mod [Re: ulf] #72248
04/27/06 03:25
04/27/06 03:25
Joined: Aug 2001
Posts: 2,320
Alberta, Canada
William Offline
Expert
William  Offline
Expert

Joined: Aug 2001
Posts: 2,320
Alberta, Canada
Yes, this would be a very good option to have. I find it to be rather annoying to now and then, but in an rts it must be really tough.

P.S - Since I know your creating a multiplayer game ulf(wouldn't post this otherwise), i'm gonna also reccomend Conitec create 2 little check boxs in the run-time box. One adds "-sv" the other "-cl" to the command line. My fingers hurt from typing and deleting the "-sv" every test. There, finally reccomended 2 small little annoyences I was to lazy to create a new thread for.


Check out Silas. www.kartsilas.com

Hear my band Finding Fire - www.myspace.com/findingfire

Daily dev updates - http://kartsilas.blogspot.com/
Re: restricting mouse movement inside windowed mod [Re: William] #72249
04/27/06 13:07
04/27/06 13:07
Joined: Aug 2005
Posts: 1,012
germany, dresden
ulf Offline OP
Serious User
ulf  Offline OP
Serious User

Joined: Aug 2005
Posts: 1,012
germany, dresden
yeah i know what you mean william i copy and past it from a text file to save typing time

oh and thanks for your help ichiro, its a solution but i will only use it when i really need it and conitec does not fix that problem during the next 2 years

Re: restricting mouse movement inside windowed mod [Re: William] #72250
04/27/06 14:55
04/27/06 14:55
Joined: Sep 2003
Posts: 9,859
F
FBL Offline
Senior Expert
FBL  Offline
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
Quote:

Yes, this would be a very good option to have. I find it to be rather annoying to now and then, but in an rts it must be really tough.

P.S - Since I know your creating a multiplayer game ulf(wouldn't post this otherwise), i'm gonna also reccomend Conitec create 2 little check boxs in the run-time box. One adds "-sv" the other "-cl" to the command line. My fingers hurt from typing and deleting the "-sv" every test. There, finally reccomended 2 small little annoyences I was to lazy to create a new thread for.




Hey I know this problem, although I dropped any work with multiplayer

Simple solution (at least for development): Create two different desktop shortcuts

Re: restricting mouse movement inside windowed mod [Re: FBL] #72251
04/28/06 11:59
04/28/06 11:59
Joined: Aug 2001
Posts: 2,320
Alberta, Canada
William Offline
Expert
William  Offline
Expert

Joined: Aug 2001
Posts: 2,320
Alberta, Canada
@Firo - I'm doing my multiplayer work on one pc(opening 2-3 windows, one "-cl -sv" the other "-cl"). I only do a test periodically every couple weeks across a network if I need to test the gameplay deeper... so I dont think shorcuts would work. Thanks for the tip though.

I noticed the quickest way(even quicker than copy/paste from text document) is to have "-cl" then just add "-sv" when you need it. Just make sure you arnt going "-sv -cl" always keep it "-cl -sv" it's quicker for selecting, deleteing, ect every time you gotta run it. Please add 2 little check boxs Conitec... please do our fingers a favour.

Re: restricting mouse movement inside windowed mod [Re: William] #72252
04/28/06 13:30
04/28/06 13:30
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline
Senior Expert
ello  Offline
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
i saw this option in oblivion's windowed mode, its pretty good, no errournes outside clicking while being able to move the mouse like you want

do it, please

Re: restricting mouse movement inside windowed mod [Re: William] #72253
04/28/06 22:26
04/28/06 22:26
Joined: Sep 2003
Posts: 9,859
F
FBL Offline
Senior Expert
FBL  Offline
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
Hm I'm afraid I don't quite understand. I also tested it on one PC and had one shortcut with -sv -cl and anotherone only with -cl
For singleplayer I created a shortut without parameters.

This makes three desktop icons and that's it.

For testing via network I jsut copied the gae folder including theshortcuts over to the other pc.

I chose a standard directory on both PCs so I don't need to update the pathes every time.

Re: restricting mouse movement inside windowed mod [Re: FBL] #72254
04/29/06 06:48
04/29/06 06:48
Joined: Aug 2001
Posts: 2,320
Alberta, Canada
William Offline
Expert
William  Offline
Expert

Joined: Aug 2001
Posts: 2,320
Alberta, Canada
I guess i've been starting the game thru WED's run button. I don't think theres a way to make a shortcut to WED's run button with different parameters?


Check out Silas. www.kartsilas.com

Hear my band Finding Fire - www.myspace.com/findingfire

Daily dev updates - http://kartsilas.blogspot.com/
Re: restricting mouse movement inside windowed mod [Re: William] #72255
05/05/06 14:00
05/05/06 14:00
Joined: Aug 2005
Posts: 1,012
germany, dresden
ulf Offline OP
Serious User
ulf  Offline OP
Serious User

Joined: Aug 2005
Posts: 1,012
germany, dresden
will this be considered somehow sometimes in the future maybe? or is there even a better .dll solution like ichiro suggested?

Page 1 of 2 1 2

Moderated by  aztec, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1