vbCrLf
Community Member

Posts: 315
|
 |
« 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
|
|
|
|
|
SylvainTV
|
 |
« 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
|
|
|
|
vbCrLf
Community Member

Posts: 315
|
 |
« 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
|
|
|
|
|
SylvainTV
|
 |
« Reply #3 on: October 02, 2007, 06:53:26 AM » |
|
Thanks I will test it
|
|
|
|
|
Logged
|
|
|
|
|
EagleEye
|
 |
« 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
|
|
|
|
|
Raine
|
 |
« 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!  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
|
 |
« 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
|
 |
« 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
|
|
|
|
|
Leon_
|
 |
« 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
|
 |
« 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_
|
 |
« 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
|
 |
« 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
|
|
|
|
|
Leon_
|
 |
« 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
|
|
|
|
|