[Program] GlovePIE

Prometheus

Everything is mutable; nothing is sacred
Reaction score
589
GlovePIE is an all-purpose key setting and remapping software.

It works by recognizing any input, and then changing that into an output.
The language it uses is ultra simple.

Code:
Key.O = Wiimote1.Classic.Plus

What that effectively does is (assuming you have a Wiimote + Classic Controller connected to your computer) every time you press the plus button on the classic controller, it will output an "o".

For those people who just can't code, it has a wonderful GUI!

GlovePIE1.jpg


It has a Detect Output and a Detect Input button. This means in order to make my Wii Classic Controllers X button produce a "Z", I just hit Detect Output, hit Z, then hit detect input and hit X on my classic controller!

While the GUI may be great for basic operations, this also has a more complex side. Mouse movement for instance, is more complex then...

Code:
Mouse.y = MapRange(Wiimote1.Classic.Joy1Y, -1,1, 0,1)  
Mouse.x = MapRange(Wiimote1.Classic.Joy1X, -1,1, 0,1)

Why? It should work! No, it doesn't. It's weird like that. You can move the mouse but it'll pop back to center screen once you're done moving that joystick around. The best method I've seen is as follows.

Code:
if (-1.2 < wiimote1.Classic.Joy1Y < -0.5) {    
  Mouse.DirectInputY = Mouse.DirectInputY - 20;
}                                              
if (0.5 < wiimote1.Classic.Joy1Y < 1.2) {      
  Mouse.DirectInputY = Mouse.DirectInputY + 20;
}                                              
if (-1.2 < wiimote1.Classic.Joy1X < -0.5) {    
  Mouse.DirectInputX = Mouse.DirectInputX - 20;
}                                              
if (0.5 < wiimote1.Classic.Joy1X < 1.2) {      
  Mouse.DirectInputX = Mouse.DirectInputX + 20;
}
I didn't make that, only mooched off of the Wiki-like resource site
So, this language has complexity but I haven't needed to use any of it, other then the mouse and that's pretty darn simple.

So far I've created two scripts. One to interface with my GBA Emu, and Luna from DotA.

The two scripts can be found below.

Luna
Code:
Key.O = Wiimote1.Classic.Plus                   
Key.C = Wiimote1.Classic.a                      
Key.G = Wiimote1.Classic.y                      
Key.L = Wiimote1.Classic.b                      
Key.E = Wiimote1.Classic.x                      
Key.U = Wiimote1.Classic.Home                   
Key.Escape = Wiimote1.Classic.Minus             
Shift+P+I+E = Wiimote.Classic.Up                
Mouse.Leftbutton = Wiimote1.Classic.LFull       
Mouse.Rightbutton = Wiimote1.Classic.RFull      
Key.A + Mouse.Leftbutton = Wiimote1.Classic.ZR  
Key.ArrowKeys = Wiimote1.Classic.Joy2           
//Nickm717 Classic Controller Mouse             
// R34P3R M0D :: Left Joystick, Faster Movement 
if (-1.2 < wiimote1.Classic.Joy1Y < -0.5) {     
  Mouse.DirectInputY = Mouse.DirectInputY - 20; 
}                                               
if (0.5 < wiimote1.Classic.Joy1Y < 1.2) {       
  Mouse.DirectInputY = Mouse.DirectInputY + 20; 
}                                               
if (-1.2 < wiimote1.Classic.Joy1X < -0.5) {     
  Mouse.DirectInputX = Mouse.DirectInputX - 20; 
}                                               
if (0.5 < wiimote1.Classic.Joy1X < 1.2) {       
  Mouse.DirectInputX = Mouse.DirectInputX + 20; 
}

GBA
Code:
Key.T = Wiimote1.Classic.Up   
Key.G = Wiimote1.Classic.Down 
Key.F = Wiimote1.Classic.Left 
Key.H = Wiimote1.Classic.Right
Key.A = Wiimote1.Classic.a    
Key.S = Wiimote1.Classic.b    
Key.L = Wiimote1.Classic.Minus
Key.O = Wiimote1.Classic.Plus 
Key.Q = Wiimote1.Classic.LFull
Key.W = Wiimote1.Classic.RFull
Key.X = Wiimote1.Classic.x    
Key.Y = Wiimote1.Classic.y

Note: I've only used this for my Wii Classic Controller.
 

DDRtists

ɹoʇɐɹǝpoɯ ɹǝdns
Reaction score
415
I used to mess around with Glovepie a bunch, awesome program. :thup:
 

Prometheus

Everything is mutable; nothing is sacred
Reaction score
589
Yeah, you can make a second mouse operated VIA keyboard, and more.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top