playMaker

Author Topic: Change Mouse Sensitivity  (Read 8382 times)

Dev_Sebas

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 398
    • Blog
Change Mouse Sensitivity
« on: December 10, 2011, 08:23:30 PM »
Change Mouse Sensitivity will be great
Bye

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Change Mouse Sensitivity
« Reply #1 on: December 13, 2011, 01:16:46 PM »
You can change the mouse sensitivity in the Unity Input Manager.

Unfortunately the Unity Input manager isn't exposed to scripting. You can vote for it here:
http://feedback.unity3d.com/forums/15792-unity/suggestions/175032-scripting-expose-input-manager-settings?ref=title

Or are there specific actions that you'd like to see a sensitivity parameter added to?



Dev_Sebas

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 398
    • Blog
Re: Change Mouse Sensitivity
« Reply #2 on: December 14, 2011, 09:04:07 AM »
I just want a action for PlayMaker to change my sensitivity.
Bye

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Change Mouse Sensitivity
« Reply #3 on: December 15, 2011, 01:54:03 AM »
Hi,

What exactly are you using right now for your mouse input?

 If you use the action: GetAxis, the multiplier is perfect to adjust the sensitivity.

add GetAxis to your state and type "Mouse X" or "Mouse Y" and adjust the multiplier value until you reach a satisfactory result.

 Example, take the raycast example I sent on that other thread:

thread:http://hutonggames.com/playmakerforum/index.php?topic=725.msg3782#msg3782
package: http://dl.dropbox.com/u/17356625/Unity/projects/misc/raycast.unitypackage

1: Select the "laser" GameObject
2: Select the "rotate gun" Fsm
3: in that state, replace both GetAxis "axis name" by "Mouse X" and "Mouse Y"
4: play the scene
5: see how the mouse control now the laser
6: while playing, change the multiplier of them getAxis and see how faster or slower it gets. This is your sensitivity setting

Hope it helps,

Bye,

 Jean

Dev_Sebas

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 398
    • Blog
Re: Change Mouse Sensitivity
« Reply #4 on: December 15, 2011, 04:44:39 PM »
HUAH thank you Jean ;D :)very nice
Bye