Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: Fullscreen and GetMouseState()  (Read 1353 times)
vbCrLf
Community Member
*
Posts: 315


WWW
« on: September 30, 2007, 02:27:24 AM »

When using GetMouseState() in full screen mode without window handle (in Init3DFullscreen()), the function returns wrong value.
To fix it I just had to give Init3DFullscreen() my window handle as a parameter.
My problem or a bug?
vbCrLf.
Logged

TVProjects
SylvainTV
Administrator
Community Member
*****
Posts: 4479


WWW
« Reply #1 on: September 30, 2007, 05:20:37 AM »

Hello,

I think it's a real bug.

Some questions though :
- What values are you getting back ? Is it constant values ? Is there a pattern (some offset or something like that) ?
- What happens with GetAbsMouseState ? (maybe easier to see)
- Is there anything written to debug file about input ? (INPUT MANAGER lines)
Logged

Regards

Sylvain Dupont
TrueVision3D Developer
sylvain@truevision3d.com

TV3D IRC at http://chat.truevision3d.com or on server irc.truevision3d.com #Truevision3D. Come talk with us !
vbCrLf
Community Member
*
Posts: 315


WWW
« Reply #2 on: September 30, 2007, 03:52:30 PM »

1. Immediately after running its equals to zero, after moving the mouse its always: X=-1023913472 and Y=2.
2. GetAbsMouseState() working perfect.
3. Nothing about TVInput.

vbCrLf.
Logged

TVProjects
SylvainTV
Administrator
Community Member
*****
Posts: 4479


WWW
« Reply #3 on: October 02, 2007, 06:53:26 AM »

Thanks I will test it
Logged

Regards

Sylvain Dupont
TrueVision3D Developer
sylvain@truevision3d.com

TV3D IRC at http://chat.truevision3d.com or on server irc.truevision3d.com #Truevision3D. Come talk with us !
EagleEye
Customers
Community Member
*****
Posts: 321


WWW
« Reply #4 on: October 21, 2007, 07:19:11 PM »

Sylvain, I remember talking with you about this previously, where it wouldn't work without the form's handle, even though it's not rendering to the form or something... we verified this bug and I thought it was put in to the bug tracker... This was all discussed on IRC a long time ago, so my recollection is not the best.
Logged

Vermund - A Matter of Life and Death MMORPG
My TV Projects - EEGUI (A GUI for TV6.5 with .NET 2005+), Material Editor, tutorials, and more!
Raine
Customers
Community Member
*****
Posts: 1190


« Reply #5 on: November 28, 2007, 12:56:22 PM »

It doesn't work; windowed: everything's okay; fullscreen: mouse's position is stuck at 1024, 0.. figures! Smiley

Edit: Supplying a Form handle seems to fix the problem. However I haven't managed to make the cursor show (ShowWinCursor does nothing).
« Last Edit: December 01, 2007, 11:44:02 AM by RaineC » Logged

Waterman
Customers
Community Member
*****
Posts: 1141


« Reply #6 on: November 28, 2007, 05:31:02 PM »

Actually i have something similar in fullscreen, but i haven't bothered to investigate the problem yet. In any case, the behaviour in fullscreen is not identical to that in windowed.

I seem to be calling either of:

- Init3DWindowed PictureBox.Handle 1
- Init3DFullscreen Xres Yres.

(I recall that the world just rotates around Y when in fullscreen)
Logged

Things should be described as simply as possible - but not simpler [A. Einstein]
SylvainTV
Administrator
Community Member
*****
Posts: 4479


WWW
« Reply #7 on: December 01, 2007, 01:46:46 PM »

I couldn't reproduce the bug actually.
I wonder if someone can send the source (VS2003/2005 or VB6) that shows the problem ?

Thanks
Logged

Regards

Sylvain Dupont
TrueVision3D Developer
sylvain@truevision3d.com

TV3D IRC at http://chat.truevision3d.com or on server irc.truevision3d.com #Truevision3D. Come talk with us !
Leon_
Customers
Community Member
*****
Posts: 65


WWW
« Reply #8 on: January 01, 2008, 12:21:42 PM »

Same problem here. GetMouseState returns 0 - 0 in windowed mode and 1340218576 - 0 in fullscreen mode.

If I interact with a control in the form in windowed mode (e.g. with the maximize button or if I call a MessageBox every frame) then GetMouseState works and returns values.

I pass the form's handle in the TVInit method.

Thanks,
Logged

beyonder
Customers
Community Member
*****
Posts: 251


« Reply #9 on: January 01, 2008, 02:57:21 PM »

You might want to test it with another video card... preferably a newer one. I was having lots of Fullscreen messups and then I upgraded to a GF7600... everything works fine now.

Logged
Leon_
Customers
Community Member
*****
Posts: 65


WWW
« Reply #10 on: January 01, 2008, 04:30:33 PM »

You might want to test it with another video card... preferably a newer one. I was having lots of Fullscreen messups and then I upgraded to a GF7600... everything works fine now.

Hey, thanks for your suggestion.

Although I think the problem is not hardware or drivers related (I've a 8800 graphics card btw).

GetMouseState() works in other apps for me but in this specific app I've the problem but I can't isolate it.
Logged

SylvainTV
Administrator
Community Member
*****
Posts: 4479


WWW
« Reply #11 on: January 01, 2008, 04:49:49 PM »

The thing is maybe the focus at init.

Do you call Form.Show() and is the form visible before you init the engine ?
Logged

Regards

Sylvain Dupont
TrueVision3D Developer
sylvain@truevision3d.com

TV3D IRC at http://chat.truevision3d.com or on server irc.truevision3d.com #Truevision3D. Come talk with us !
Leon_
Customers
Community Member
*****
Posts: 65


WWW
« Reply #12 on: January 01, 2008, 05:49:47 PM »

Ok thanks to Sylvain my issue was solved.

It wasn't TV related, some error in a division I was doing in my movement code.
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks