Jump to content
  • Advertisement
Sign in to follow this  

Action Mapping for Mouse

This topic is 5041 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi I am writing a program built on the directX app wizard. I am a noob with direct input and have a problem which i am hoping someone may suggest a way past. Essentially i want to be able to rotate a mesh on an axis by using the mouse. This i have achieved in part by adding a mouse input mapping in the game action array(defined near top of main app): DIACTION g_rgGameAction[] { INPUT_ROTATE_AXIS_LR, DIMOUSE_XAXIS, 0, TEXT("Rotate left/right"), }, ok that pretty straight forward now i can receive input data from the mouse in "relative axis" mode. The problem is that once the mouse has been moved the input value for data from this mouse axis now has a minimum value of 0.01 or -0.01(depending on which direction it moved in last) even if the mouse is not moving. I want to avoid using a deadzone because that interfers with the sensitivity of my mouse too much at low speeds. From what i have read using absolute mode may be a help but if so can it be used with action mapping? I have also looked at 2 direct input samples: C:\DXSDK\samples\Multimedia\DirectInput\Mouse C:\DXSDK\samples\Multimedia\DirectInput\Scrawl Both of these seem to have very nice input sensitivity that would suit me fine but dont use action mapping. Can i use these methods with action mapping too(for keyboard)? Thanks for helping

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!