C Board  

Go Back   C Board > General Programming Boards > Game Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 06-15-2004, 09:16 PM   #1
Super Moderator
 
Bubba's Avatar
 
Join Date: Aug 2001
Posts: 7,817
Weird mouse problem in XP

I just installed XP on my system and gave 'ol 98 the heave ho.

XP is far better and manages memory a lot differently and my games have actually sped up. I'm actually getting over 300 some frames with my terrain code now which is.....breathtaking.

However, there is one problem. The mouse is not working correctly. As you move the mouse it hesitates and then moves the correct distance. It did not do this on 98 so I'm not sure what is going on.

All I'm doing is calling update in my game loop and then pitching and rotating the camera based on the mouse coords, relative coords in this case.

Buffered input does not seem like an option since I need to know the mousedata instantly in order to respond to the user. However I'm getting this weird behavior.

I'm working on an InstallShield program for my engine so that you guys can test this thing out and not have to worry about it installing correctly.

InstallShield is very cool.

EDIT: By the way the keyboard does not hesitate at all...which is confusing me.

Shakti, have you experienced this problem with my mouse code yet?? If not, I need to look at the code I sent you to see if perhaps I 'altered' something in my copy accidentally.
Bubba is offline   Reply With Quote
Old 06-16-2004, 09:32 AM   #2
Registered User
 
Join Date: Aug 2003
Posts: 782
Copy that Bubba. I have unfortunately not implemented the mouse in my game yet (I have started my summerwork and then its european championships in football lol).
Shakti is offline   Reply With Quote
Old 06-16-2004, 09:41 AM   #3
Banned
 
Join Date: May 2004
Posts: 129
Post some code.
vNvNation is offline   Reply With Quote
Old 06-16-2004, 09:54 AM   #4
l'Anziano
 
DavidP's Avatar
 
Join Date: Aug 2001
Posts: 2,630
wow i never thought someone would be telling Bubba to post code
__________________
My Website

"Circular logic is good because it is."
DavidP is offline   Reply With Quote
Old 06-16-2004, 11:44 AM   #5
Banned
 
Join Date: May 2004
Posts: 129
Why is that exactly? You don't enjoy reading that person's code or something?
vNvNation is offline   Reply With Quote
Old 06-16-2004, 11:47 AM   #6
Super Moderator
 
Bubba's Avatar
 
Join Date: Aug 2001
Posts: 7,817
I figured it out.

The frame rate was too high. At frame rates at/over 200 fps the mouse does not work correctly. I'm not sure why this happens.

Posting code in this case would not help.

I'm just calling Update() which fills the DIMOUSESTATE structure with the current relative mouse data.

From that I'm rotating and pitching the camera by DIMOUSESTATE.lx and DIMOUSESTATE.ly.

Last edited by Bubba; 06-16-2004 at 11:49 AM.
Bubba is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Weird printf() problem stanlvw C++ Programming 2 02-23-2008 02:29 AM
A question related to strcmp meili100 C++ Programming 6 07-07-2007 02:51 PM
Weird problem with sscanf g4j31a5 C++ Programming 17 10-04-2006 09:16 PM
Fstream problem 2000 and xp ~Kyo~ C++ Programming 1 12-06-2004 10:05 PM
weird problem with passing a value.. Unregistered C Programming 11 06-21-2002 09:05 AM


All times are GMT -6. The time now is 07:06 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22