Author Topic: help with glovepie script  (Read 9993 times)

Offline ferdi

  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
on: March 14, 2011, 01:44:18 PM
Hello everyone,

I am busy writing a script for fps games. I am using IR, but it seems to be to sensitive. So when i start a game i have to put mouse sensitive to its lowest and even then it moves to fast. How can i change this?

This is my script. Please help me



if wiimote.PointerVisible but not var.PointerBump then
  mouse.x = wiimote.PointerX
  mouse.y = wiimote.PointerY
end if

// Mouse Buttons
mouse.LeftButton = Wiimote.B and KeepDown(Wiimote.PointerVisible,0.1s)
mouse.RightButton = Wiimote.A and KeepDown(Wiimote.PointerVisible,0.1s)



Key.A = Nunchuk.Left
Key.W = Nunchuk.Up
Key.D = Nunchuk.Right
Key.S = Nunchuk.Down
Mouse.LeftButton = Wiimote.B
Mouse.RightButton = Wiimote.A
Key.R = Nunchuk.Z
Key.C = Wiimote.Down
Key.LeftShift = Wiimote.Left
Key.Q = Wiimote.Minus
Key.G = Wiimote.Plus
Mouse.WheelUp = Wiimote.Up
Mouse.WheelDown = Wiimote.Down

  Wiimote.Rumble = (Wiimote.B)



Offline ferdi

  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Reply #1 on: March 14, 2011, 04:21:22 PM
no one knows how to change the speed of my mouse???



Offline boonjin

  • *
  • Posts: 929
  • Karma: +28/-0
  • Smoothboard Developer
    • View Profile
    • Smoothboard
Reply #2 on: March 14, 2011, 06:44:13 PM
no one knows how to change the speed of my mouse???

Hi,

Have you tried dividing the values to reduce the speed?

Regards,
Boon Jin

Smoothboard
Wii Whiteboard/Wiimote Whiteboard with annotation features and collaborate with multiple iPads and Android Tablets!

Smoothboard for Mac
Using a Mac? Now you can annotate on PowerPoint or Keynote slideshows!

BoonJin[/url


Offline ferdi

  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Reply #3 on: March 15, 2011, 12:21:13 AM
Thanx for your reply.

No, but i am new to all of this. How should I do that?



Offline bg4m3r

  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Reply #4 on: July 30, 2011, 07:28:23 PM
He quite literally meant to divide...like this
Code: [Select]
var.spd = 2

mouse.x = (wiimote.PointerX)/(var.spd)
mouse.y = (wiimote.PointerY)/(var.spd)

That should do it...just change the value of var.spd to anything to tweak the sensitivity.