![]() |
| | #1 |
| Super Moderator Join Date: Aug 2001
Posts: 7,817
| Weird mouse problem in XP 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 | |
| | #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 | |
| | #3 |
| Banned Join Date: May 2004
Posts: 129
| Post some code. |
| vNvNation is offline | |
| | #4 |
| l'Anziano Join Date: Aug 2001
Posts: 2,630
| wow i never thought someone would be telling Bubba to post code |
| DavidP is offline | |
| | #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 | |
| | #6 |
| Super Moderator 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 | |
![]() |
| Thread Tools | |
| Display Modes | |
|
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 |