Snapshot

Snapshot

Ver estadísticas:
TsaebehT 22 ENE 2013 a las 12:31
GlovePIE script for Wii Remote Plus (MotionPlus)
I've been working on a script for Snapshot using a Wii remote and thought I'd share it, I think it works pretty good.

You hold the remote horizontally for the platforming and point it forward to take and use snapshots.

Dpad = Movement/Menus
Button 1 = Crouch/Start Levels
Button 2 = Jump/Space
Plus = Enter
Minus = Escape
B = Hold to aim, Release to take snapshot
A = Hold to aim, Release to use snapshot and either hold again to rotate snapshot and release to use or just tap to use

Just make sure the Wii remote is laying on a flat surface when you start the script as it calibrates it when it starts.

Script:
//Snapshot by TsaebehT //Movement A = Wiimote.Up D = Wiimote.Down Up = Wiimote.Right Down = Wiimote.Left //Crouch S = Wiimote.1 //Jump Space = Wiimote.2 //Enter Enter = Wiimote.Plus //Escape Escape = Wiimote.Minus //Enable Mouse if WiiMote.A | Wiimote.B then var.sensitivityGyro = [.3, .3] //Change To Higher or Lower Values to Increase or Decrease Sensitivity var.deadzoneGyro = [0, 0] var.Gyro = [0, 0] if (Abs(WiiMote.MotionPlus.YawSpeed + var.calibrationGyro[1]) > var.deadzoneGyro[1]) then var.Gyro[1] = RemoveUnits(WiiMote.MotionPlus.YawSpeed + var.calibrationGyro[1]) - (Sign(WiiMote.MotionPlus.YawSpeed) * var.deadzoneGyro[1]) if (Abs(WiiMote.MotionPlus.PitchSpeed + var.calibrationGyro[2]) > var.deadzoneGyro[2]) then var.Gyro[2] = RemoveUnits(WiiMote.MotionPlus.PitchSpeed + var.calibrationGyro[2]) - (Sign(WiiMote.MotionPlus.PitchSpeed) * var.deadzoneGyro[2]) Mouse.DirectInputX = Mouse.DirectInputX + (var.Gyro[1] * var.sensitivityGyro[1]) Mouse.DirectInputY = Mouse.DirectInputY + (-1 * var.Gyro[2] * var.sensitivityGyro[2]) Mouse.LeftButton = False end if //Copy If Released(Wiimote.B) then Mouse.LeftButton = True Mouse.LeftButton = False Mouse.RightButton = False end if //Paste If Released(Wiimote.A) then Mouse.RightButton = True Mouse.RightButton = False end if
Última edición por TsaebehT; 22 ENE 2013 a las 12:33
< >
Mostrando 1-3 de 3 comentarios
Brackets  [desarrollador] 22 ENE 2013 a las 15:42 
This is awesome!

-Dave
www.retroaffect.com
MichaelBTryin 20 OCT 2014 a las 12:12 
i based my absolite head tracking on the mouse section!
LalitoTV 5 MAY 2024 a las 16:25 
All I wanted to say is, thank you

I've been trying so hard to use gyro with steam input, but no matter what I move in the settings it's always just slightly buggy enough to be annoying...

That's when I was like, hey, wait a minute, the Wii remote has gyro!
Surely someone has alredy thought of using it as a mouse?

Lo and behold, Glovepie! It has a built in gyro profile but it flickers for some reason, I'm not savvy enough to try and fix it, I looked for an alternative for a while, I even found a standalone program that did work fine but didn't work in games because of issues with the mouse hiding thing most games use...

And after searching everywhere, I finally found your script! It's perfect! It's glorious!!!
Using a Wii remote to aim feels so natural!!! So much so that I've started using it for games like TF2 (in other words, games that require precision as opposed to just looking around) and words cannot describe how great it is, it's just so intuitive to aim around with a long shaped controller like the Wiimote!

It's so great finally finding a great use for the Wii motion plus, I always felt like Nintendo underutilized it, and now I can give it a second life! It's like when you hack a console to run home brew on it!
< >
Mostrando 1-3 de 3 comentarios
Por página: 1530 50