Thread: Weird mouse problem in XP

  1. #1
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001

    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.

  2. #2
    Registered User
    Join Date
    Aug 2003
    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).

  3. #3
    Join Date
    May 2004
    Post some code.

  4. #4
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Plano, Texas, United States
    wow i never thought someone would be telling Bubba to post code
    My Website

    "Circular logic is good because it is."

  5. #5
    Join Date
    May 2004
    Why is that exactly? You don't enjoy reading that person's code or something?

  6. #6
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    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
    Last edited by VirtualAce; 06-16-2004 at 11:49 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Weird printf() problem
    By stanlvw in forum C++ Programming
    Replies: 2
    Last Post: 02-23-2008, 01:29 AM
  2. A question related to strcmp
    By meili100 in forum C++ Programming
    Replies: 6
    Last Post: 07-07-2007, 02:51 PM
  3. Weird problem with sscanf
    By g4j31a5 in forum C++ Programming
    Replies: 17
    Last Post: 10-04-2006, 09:16 PM
  4. Fstream problem 2000 and xp
    By ~Kyo~ in forum C++ Programming
    Replies: 1
    Last Post: 12-06-2004, 09:05 PM
  5. weird problem with passing a value..
    By Unregistered in forum C Programming
    Replies: 11
    Last Post: 06-21-2002, 09:05 AM
Website Security Test