 |
WiiLi.org a new revolution
|
| View previous topic :: View next topic |
| Author |
Message |
Mighty
Joined: 05 Sep 2007 Posts: 2
Digg It |
Posted: Sun Sep 16, 2007 8:37 pm Post subject: |
|
|
Do games like Bioshock work with GlovePIE? Can anyone post a script?
I'm having some problems with my GlovePIE. It's working using the Bluetooth fix, but I'm still haven't problems using the motion control? The mouse functions work, and on a Super Smash Brothers script the motion control worked, but I can't get it to work with games like Mario Kart, tilting the remote from side to side does nothing. The buttons work though. Same with Zelda. And I can't get the numchuck to control movment on Zelda, or the Wiimore to control the sword. Any help? |
|
| Back to top |
|
 |
SpiderMark
Joined: 22 Sep 2007 Posts: 2
Digg It |
Posted: Sat Sep 22, 2007 7:44 am Post subject: |
|
|
Here's my first major script. It's an Emulator script and has probably been done a million times before, but I think mine is a tad bit unique, check it out. It's for the SNES (either ZSNES of SNES9x, you decide)
| Code: | //Wiimulation: SNES v2.0
//By: Marceux
// What does this Script do?
// This script checks for whether or not a
// wiimote has an expansion, and what kind of
// expansion it is. When you replace or remove an
// expansion, it does not interfere with the script
// and elliminates the need to load up new scripts.
// The script then sets the input for the Wiimote
// and its expansion, for use in playing with an
// SNES emulator.
// To Edit or See Player's Config Press Ctrl+F and Type in:
// [PLY1] for Player 1
// [PLY2] for Player 2
// E-mail Me Any Questions or Ideas or Concerns
// Script Starts Here //
If !var.init
var.init=true
var.wiidetect=true
endif
//Wiimotes Rumble to Signify Script is Activated
If var.wiidetect=True
Wiimote1.Rumble=True
Wait 500ms
Wiimote1.Rumble=False
Wiimote2.Rumble=True
Wait 500ms
Wiimote2.Rumble=False
var.wiidetect=False
Endif
//==================//
// //
// - First Player - //
// [PLY1] //
//==================//
//-------------------------------------//
// Keyboard Input // SNES Button //
//-------------------------------------//
// For Customization, Change the Key //
// Before the '=' sign. //
//-------------------------------------//
Q = var.K1UP // Up Button //
W = var.K1DO // Down Button //
E = var.K1LE // Left Button //
R = var.K1RI // Right Button //
X = var.K1AB // A Button //
Z = var.K1BB // B Button //
S = var.K1XB // X Button //
A = var.K1YB // Y Button //
D = var.K1LB // L Button //
C = var.K1RB // R Button //
F = var.K1ST // Start Button //
V = var.K1SE // Select Button //
//-------------------------------------//
//Sets the Shift Button//
Wiimote1.B = var.p1trigger
//Gives the Home Button a Function//
Keyboard.ESC = var.HOME1
//~~~~~~~~~~~~~~~~*NOTE*~~~~~~~~~~~~~~~~~//
// To customize the button layout for //
// the following configurations use the //
// 4-digit phrase to find and edit the //
// script to suit your needs //
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
// - Wiimote Only Button Configuration - //
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
//-----------------------------------//
// SNES Button || Wiimote Button //
//-----------------------------------//
// Up || Right [W1UP] //
// Down || Left [W1DO] //
// Left || Up [W1LE] //
// Right || Down [W1RI] //
// A || Shift + 2 [W1AB] //
// B || Two [W1BB] //
// X || Shift + 1 [W1XB] //
// Y || One [W1YB] //
// L || Shift + A [W1LB] //
// R || A [W1RB] //
// Start || Plus [W1ST] //
// Select || Minus [W1SE] //
//-----------------------------------//
// **"Shift" Default = Wiimote B** //
//-----------------------------------//
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
// - Wiimote and Nunchuk Button Configuration - //
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
//--------------------------------------------//
// SNES Button || Wiimote or Nunchuk Button //
//--------------------------------------------//
// Up || Joystick Up [N1UP] //
// Down || Joystick Down [N1DO] //
// Left || Joystick Left [N1LE] //
// Right || Joystick Right [N1RI] //
// A || A [N1AB] //
// B || One [N1BB] //
// X || C [N1XB] //
// Y || Two [N1YB] //
// L || Z [N1LB] //
// R || B [N1RB] //
// Start || Plus [N1ST] //
// Select || Minus [N1SE] //
//--------------------------------------------//
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
// - Classic Controller Button Configuration - //
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
//--------------------------------------------//
// SNES Button || Classic Controller Button //
//--------------------------------------------//
// Up || Up [C1UP] //
// Down || Down [C1DO] //
// Left || Left [C1LE] //
// Right || Right [C1RI] //
// A || A [C1AB] //
// B || B [C1BB] //
// X || X [C1XB] //
// Y || Y [C1YB] //
// L || L [C1LB] //
// R || R [C1RB] //
// Start || Start [C1ST] //
// Select || Select [C1SE] //
//--------------------------------------------//
//Checks if using Wiimote Alone
If (Wiimote1.Expansion=0)
//~~~~~~~~~~~~~~~~~~//
// - Wiimote Only - //
//~~~~~~~~~~~~~~~~~~//
//Adjusts LEDs for No Expansions
Wiimote1.Led1=True
Wiimote1.Led2=False
Wiimote1.Led3=False
Wiimote1.Led4=False
// Directional Buttons //
If (Wiimote1.Right) // [W1UP]
Press(var.K1UP)
Else
Release(var.K1UP)
Endif
If (Wiimote1.Left) // [W1DO]
Press(var.K1DO)
Else
Release(var.K1DO)
Endif
If (Wiimote1.Up) // [W1LE]
Press(var.K1LE)
Else
Release(var.K1LE)
Endif
If (Wiimote1.Down) // [W1RI]
Press(var.K1RI)
Else
Release(var.K1RI)
Endif
// Multi-function Buttons //
If (var.p1trigger && Wiimote1.Two) //"Shift" Button, [W1AB]
Press(var.K1AB)
Else
Release(var.K1AB)
Wait 50ms
If Wiimote1.Two && (!var.p1trigger) // [W1BB]
Press(var.K1BB)
Else
Release(var.K1BB)
endif
Endif
If (var.p1trigger && Wiimote1.One) //"Shift" Button, [W1XB]
Press(var.K1XB)
Else
Release(var.K1XB)
Wait 50ms
If Wiimote1.One && (!Wiimote1.B) // [W1YB]
Press(var.K1YB)
Else
Release(var.K1YB)
endif
endif
If (Wiimote1.B && Wiimote1.A) //"Shift" Button, [W1LB]
Press(var.K1LB)
Else
Release(var.K1LB)
Wait 50ms
If Wiimote1.A && (!Wiimote1.B) // [W1RB]
Press(var.K1RB)
Else
Release(var.K1RB)
endif
endif
// Start, Select, and Home Buttons //
If (Wiimote1.Plus) // [W1ST]
Press(var.K1ST)
Else
Release(var.K1ST)
Endif
If (Wiimote1.Minus) // [W1SE]
Press(var.K1SE)
Else
Release(var.K1SE)
Endif
If (Wiimote1.Home)
Press(var.HOME1)
Else
Release(var.HOME1)
Endif
Elseif (Wiimote1.Expansion=2)
//~~~~~~~~~~~~~~~~~~~~~~~~~//
// - Wiimote and Nunchuk - //
//~~~~~~~~~~~~~~~~~~~~~~~~~//
//Adjust LEDs for Nunchuk
Wiimote1.Led1=True
Wiimote1.Led2=False
Wiimote1.Led3=True
Wiimote1.Led4=False
// Nunchuk Joystick //
If (-1.2 < Wiimote1.Nunchuk.JoyY < -0.5) // [N1UP]
Press(var.K1UP)
Else
Release(var.K1UP)
Endif
If (1.2 > Wiimote1.Nunchuk.JoyY > 0.5) // [N1DO]
Press(var.K1DO)
Else
Release(var.K1DO)
Endif
If (-1.2 < Wiimote1.Nunchuk.JoyX < -0.5) // [N1LE]
Press(var.K1LE)
Else
Release(var.K1LE)
Endif
If (1.2 > Wiimote1.Nunchuk.JoyX > 0.5) // [N1RI]
Press(var.K1RI)
Else
Release(var.K1RI)
Endif
// Standard Buttons //
If (Wiimote1.A) // [N1AB]
Press(var.K1AB)
Else
Release(var.K1AB)
Endif
If (Wiimote1.One) // [N1BB]
Press(var.K1BB)
Else
Release(var.K1BB)
Endif
If (Wiimote1.Nunchuk.CButton) // [N1XB]
Press(var.K1XB)
Else
Release(var.K1XB)
Endif
If (Wiimote1.Two) // [N1YB]
Press(var.K1YB)
Else
Release(var.K1YB)
Endif
If (Wiimote1.Nunchuk.ZButton) // [N1LB]
Press(var.K1LB)
Else
Release(var.K1LB)
Endif
If (Wiimote1.B) // [N1RB]
Press(var.K1RB)
Else
Release(var.K1RB)
Endif
// Start, Select, and Home Buttons //
If (Wiimote1.Plus) // [N1ST]
Press(var.K1ST)
Else
Release(var.K1ST)
Endif
If (Wiimote1.Minus) // [N1SE]
Press(var.K1SE)
Else
Release(var.K1SE)
Endif
If (Wiimote1.Home)
Press(var.HOME1)
Else
Release(var.HOME1)
Endif
Elseif (Wiimote1.Expansion=3)
//~~~~~~~~~~~~~~~~~~~~//
// Classic Controller //
//~~~~~~~~~~~~~~~~~~~~//
//Adjust LEDs for Classic Controller
Wiimote1.Led1=True
Wiimote1.Led2=False
Wiimote1.Led3=False
Wiimote1.Led4=True
// Standard Buttons //
If (Wiimote1.Classic.Up) // [C1UP]
Press(var.K1UP)
Else
Release(var.K1UP)
Endif
If (Wiimote1.Classic.Down) // [C1DO]
Press(var.K1DO)
Else
Release(var.K1DO)
Endif
If (Wiimote1.Classic.Left) // [C1LE]
Press(var.K1LE)
Else
Release(var.K1LE)
Endif
If (Wiimote1.Classic.Right) // [C1RI]
Press(var.K1RI)
Else
Release(var.K1RI)
Endif
If (Wiimote1.Classic.A) // [C1AB]
Press(var.K1AB)
Else
Release(var.K1AB)
Endif
If (Wiimote1.Classic.B) // [C1BB]
Press(var.K1BB)
Else
Release(var.K1BB)
Endif
If (Wiimote1.Classic.X) // [C1XB]
Press(var.K1XB)
Else
Release(var.K1XB)
Endif
If (Wiimote1.Classic.Y) // [C1YB]
Press(var.K1YB)
Else
Release(var.K1YB)
Endif
If (Wiimote1.Classic.L) // [C1LB]
Press(var.K1LB)
Else
Release(var.K1LB)
Endif
If (Wiimote1.Classic.R) // [C1RB]
Press(var.K1RB)
Else
Release(var.K1RB)
Endif
// Start, Select, and Home Buttons //
If (Wiimote1.Classic.Plus) // [C1ST]
Press(var.K1ST)
Else
Release(var.K1ST)
Endif
If (Wiimote1.Classic.Minus) // [C1SE]
Press(var.K1SE)
Else
Release(var.K1SE)
Endif
If (Wiimote1.Classic.Home)
Press(var.HOME1)
Else
Release(var.HOME1)
Endif
Endif
//===================//
// //
// - Second Player - //
// [PLY2] //
//===================//
//-------------------------------------//
// Keyboard Input // SNES Button //
//-------------------------------------//
// For Customization, Change the Key //
// Before the '=' sign. //
//-------------------------------------//
T = var.K2UP // Up Button //
Y = var.K2DO // Down Button //
U = var.K2LE // Left Button //
I = var.K2RI // Right Button //
N = var.K2AB // A Button //
B = var.K2BB // B Button //
H = var.K2XB // X Button //
G = var.K2YB // Y Button //
J = var.K2LB // L Button //
M = var.K2RB // R Button //
K = var.K2ST // Start Button //
Comma = var.K2SE // Select Button //
//-------------------------------------//
//Sets the Shift Button//
Wiimote2.B = var.p2trigger
//Gives the Home Button a Function//
Keyboard.ESC = var.HOME2
//~~~~~~~~~~~~~~~~*NOTE*~~~~~~~~~~~~~~~~~//
// To customize the button layout for //
// the following configurations use the //
// 4-digit phrase to find and edit the //
// script to suit your needs //
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
// - Wiimote Only Button Configuration - //
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
//-----------------------------------//
// SNES Button || Wiimote Button //
//-----------------------------------//
// Up || Right [W2UP] //
// Down || Left [W2DO] //
// Left || Up [W2LE] //
// Right || Down [W2RI] //
// A || Shift + 2 [W2AB] //
// B || Two [W2BB] //
// X || Shift + 2 [W2XB] //
// Y || One [W2YB] //
// L || Shift + A [W2LB] //
// R || A [W2RB] //
// Start || Plus [W2ST] //
// Select || Minus [W2SE] //
//-----------------------------------//
// **"Shift" Default = Wiimote B** //
//-----------------------------------//
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
// - Wiimote and Nunchuk Button Configuration - //
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
//--------------------------------------------//
// SNES Button || Wiimote or Nunchuk Button //
//--------------------------------------------//
// Up || Joystick Up [N2UP] //
// Down || Joystick Down [N2DO] //
// Left || Joystick Left [N2LE] //
// Right || Joystick Right [N2RI] //
// A || A [N2AB] //
// B || One [N2BB] //
// X || C [N2XB] //
// Y || Two [N2YB] //
// L || Z [N2LB] //
// R || B [N2RB] //
// Start || Plus [N2ST] //
// Select || Minus [N2SE] //
//--------------------------------------------//
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
// - Classic Controller Button Configuration - //
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
//--------------------------------------------//
// SNES Button || Classic Controller Button //
//--------------------------------------------//
// Up || Up [C2UP] //
// Down || Down [C2DO] //
// Left || Left [C2LE] //
// Right || Right [C2RI] //
// A || A [C2AB] //
// B || B [C2BB] //
// X || X [C2XB] //
// Y || Y [C2YB] //
// L || L [C2LB] //
// R || R [C2RB] //
// Start || Start [C2ST] //
// Select || Select [C2SE] //
//--------------------------------------------//
//Checks if using Wiimote Alone
If (Wiimote2.Expansion=0)
//~~~~~~~~~~~~~~~~~~//
// - Wiimote Only - //
//~~~~~~~~~~~~~~~~~~//
//Adjusts LEDs for No Expansions
Wiimote2.Led1=True
Wiimote2.Led2=False
Wiimote2.Led3=False
Wiimote2.Led4=False
// Directional Buttons //
If (Wiimote2.Right) // [W2UP]
Press(var.K2UP)
Else
Release(var.K2UP)
Endif
If (Wiimote2.Left) // [W2DO]
Press(var.K2DO)
Else
Release(var.K2DO)
Endif
If (Wiimote2.Up) // [W2LE]
Press(var.K2LE)
Else
Release(var.K2LE)
Endif
If (Wiimote2.Down) // [W2RI]
Press(var.K2RI)
Else
Release(var.K2RI)
Endif
// Multi-function Buttons //
If (var.p2trigger && Wiimote2.Two) //"Shift" Button, [W2AB]
Press(var.K2AB)
Else
Release(var.K2AB)
Wait 50ms
If Wiimote2.Two && (!var.p2trigger) // [W2BB]
Press(var.K2BB)
Else
Release(var.K2BB)
endif
Endif
If (var.p2trigger && Wiimote2.One) //"Shift" Button, [W2XB]
Press(var.K2XB)
Else
Release(var.K2XB)
Wait 50ms
If Wiimote2.One && (!Wiimote2.B) // [W2YB]
Press(var.K2YB)
Else
Release(var.K2YB)
endif
endif
If (Wiimote2.B && Wiimote2.A) //"Shift" Button, [W2LB]
Press(var.K2LB)
Else
Release(var.K2LB)
Wait 50ms
If Wiimote2.A && (!Wiimote2.B) // [W2RB]
Press(var.K2RB)
Else
Release(var.K2RB)
endif
endif
// Start, Select, and Home Buttons //
If (Wiimote2.Plus) // [W2ST]
Press(var.K2ST)
Else
Release(var.K2ST)
Endif
If (Wiimote2.Minus) // [W2SE]
Press(var.K2SE)
Else
Release(var.K2SE)
Endif
If (Wiimote2.Home)
Press(var.HOME2)
Else
Release(var.HOME2)
Endif
Elseif (Wiimote2.Expansion=2)
//~~~~~~~~~~~~~~~~~~~~~~~~~//
// - Wiimote and Nunchuk - //
//~~~~~~~~~~~~~~~~~~~~~~~~~//
//Adjust LEDs for Nunchuk
Wiimote2.Led1=True
Wiimote2.Led2=False
Wiimote2.Led3=True
Wiimote2.Led4=False
// Nunchuk Joystick //
If (-1.2 < Wiimote2.Nunchuk.JoyY < -0.5) // [N2UP]
Press(var.K2UP)
Else
Release(var.K2UP)
Endif
If (1.2 > Wiimote2.Nunchuk.JoyY > 0.5) // [N2DO]
Press(var.K2DO)
Else
Release(var.K2DO)
Endif
If (-1.2 < Wiimote2.Nunchuk.JoyX < -0.5) // [N2LE]
Press(var.K2LE)
Else
Release(var.K2LE)
Endif
If (1.2 > Wiimote2.Nunchuk.JoyX > 0.5) // [N2RI]
Press(var.K2RI)
Else
Release(var.K2RI)
Endif
// Standard Buttons //
If (Wiimote2.A) // [N2AB]
Press(var.K2AB)
Else
Release(var.K2AB)
Endif
If (Wiimote2.One) // [N2BB]
Press(var.K2BB)
Else
Release(var.K2BB)
Endif
If (Wiimote2.Nunchuk.CButton) // [N2XB]
Press(var.K2XB)
Else
Release(var.K2XB)
Endif
If (Wiimote2.Two) // [N2YB]
Press(var.K2YB)
Else
Release(var.K2YB)
Endif
If (Wiimote2.Nunchuk.ZButton) // [N2LB]
Press(var.K2LB)
Else
Release(var.K2LB)
Endif
If (Wiimote2.B) // [N2RB]
Press(var.K2RB)
Else
Release(var.K2RB)
Endif
// Start, Select, and Home Buttons //
If (Wiimote2.Plus) // [N2ST]
Press(var.K2ST)
Else
Release(var.K2ST)
Endif
If (Wiimote2.Minus) // [N2SE]
Press(var.K2SE)
Else
Release(var.K2SE)
Endif
If (Wiimote2.Home)
Press(var.HOME2)
Else
Release(var.HOME2)
Endif
Elseif (Wiimote2.Expansion=3)
//~~~~~~~~~~~~~~~~~~~~//
// Classic Controller //
//~~~~~~~~~~~~~~~~~~~~//
//Adjust LEDs for Classic Controller
Wiimote2.Led1=True
Wiimote2.Led2=False
Wiimote2.Led3=False
Wiimote2.Led4=True
// Standard Buttons //
If (Wiimote2.Classic.Up) // [C2UP]
Press(var.K2UP)
Else
Release(var.K2UP)
Endif
If (Wiimote2.Classic.Down) // [C2DO]
Press(var.K2DO)
Else
Release(var.K2DO)
Endif
If (Wiimote2.Classic.Left) // [C2LE]
Press(var.K2LE)
Else
Release(var.K2LE)
Endif
If (Wiimote2.Classic.Right) // [C2RI]
Press(var.K2RI)
Else
Release(var.K2RI)
Endif
If (Wiimote2.Classic.A) // [C2AB]
Press(var.K2AB)
Else
Release(var.K2AB)
Endif
If (Wiimote2.Classic.B) // [C2BB]
Press(var.K2BB)
Else
Release(var.K2BB)
Endif
If (Wiimote2.Classic.X) // [C2XB]
Press(var.K2XB)
Else
Release(var.K2XB)
Endif
If (Wiimote2.Classic.Y) // [C2YB]
Press(var.K2YB)
Else
Release(var.K2YB)
Endif
If (Wiimote2.Classic.L) // [C2LB]
Press(var.K2LB)
Else
Release(var.K2LB)
Endif
If (Wiimote2.Classic.R) // [C2RB]
Press(var.K2RB)
Else
Release(var.K2RB)
Endif
// Start, Select, and Home Buttons //
If (Wiimote2.Classic.Plus) // [C2ST]
Press(var.K2ST)
Else
Release(var.K2ST)
Endif
If (Wiimote2.Classic.Minus) // [C2SE]
Press(var.K2SE)
Else
Release(var.K2SE)
Endif
If (Wiimote2.Classic.Home)
Press(var.HOME2)
Else
Release(var.HOME2)
Endif
Endif
//===================================//
// Things I'd Like To Add Next Time: //
// - More Features for Wiimote Solo //
// - Battery Power Check //
// - Rumble //
// - Profiles (?) //
// - More Players //
//===================================//
// Special Thanks //
// Wiili //
// Carl Kenner //
// that's it, really.... //
//=======================// |
BTW: I'm Marceux, so don't think I'm plagarizing. |
|
| Back to top |
|
 |
gamexprt1

Joined: 23 Apr 2007 Posts: 54 Location: Washington
Digg It |
Posted: Tue Sep 25, 2007 9:40 pm Post subject: |
|
|
Can I change the name of the output file generated by this code to something else?
_________________ If (Post = Read) Then
Dignity = False
Endif |
|
| Back to top |
|
 |
SpiderMark
Joined: 22 Sep 2007 Posts: 2
Digg It |
Posted: Wed Oct 03, 2007 5:44 pm Post subject: |
|
|
| If you're asking me, then yes, sure, go ahead. What for, though? |
|
| Back to top |
|
 |
Xats
Joined: 05 Oct 2007 Posts: 1
Digg It |
Posted: Sat Oct 06, 2007 11:57 am Post subject: |
|
|
Can anybody post a working BF2 script whit nunchuk support?? _________________ I Like cheese!!!
YGO:TAS FTW!!!!!!!!!!
GLovepie is good... |
|
| Back to top |
|
 |
gamexprt1

Joined: 23 Apr 2007 Posts: 54 Location: Washington
Digg It |
Posted: Mon Oct 08, 2007 2:48 am Post subject: |
|
|
What would the script be so that I could press Key.WebBack (which is a special key at the top of my keyboard) And activate Key.F1 without activating
Key.WebBack? _________________ If (Post = Read) Then
Dignity = False
Endif |
|
| Back to top |
|
 |
JDHarper
Joined: 18 Oct 2007 Posts: 1
Digg It |
Posted: Thu Oct 18, 2007 11:53 pm Post subject: |
|
|
Hey y'all! Here's a script for navigating Google Reader. You can see a YouTube video of it in action, which I'll add to the wiki in a minute here. (I would just link it here, but since this is my first post, I'm being caught by the anti-spam bot.)
| Code: |
//Usage Instructions:
//Up - go up one story
//Down - go down one story
//Left - open or close the subscription list
//Right - open the story in a new tab/window
//1 - go up one line (Up arrow on the keyboard)
//2 - go down one line (Down arrow on the keyboard)
//B - Close the current tab/window
//- - Star the current item
//+ - Share the current item
//Home - Mark the current item as unread
//A open the "Go To Tag" menu
//While the Go To Tag menu is open, the up and down keys
//on the Wiimote move up and down one tag in the menu.
//B will cancel out of the menu
//Pushing A again will select that tag.
//To go back to viewing all items, just shake the Wiimote.
keyboard.shift && keyboard.s = wiimote1.plus
keyboard.s = wiimote1.minus
keyboard.m = wiimote1.Home
keyboard.U = wiimote1.Left
keyboard.V = wiimote1.Right
keyboard.g && keyboard.a = Wiimote1.RelAccX >= 15
if (Wiimote1.Two) then
press(key.down);
else
release(key.down);
endif
if (Wiimote1.One) then
press(key.Up);
else
release(key.Up);
endif
//Toggle Code borrowed from --removed to get past spam bot, grr--
//Modified a bit.
if pressed(wiimote.A) && (var.toggleA != 1) then
var.activeToggleA = 1;
endif
if pressed(wiimote.A)&& (var.toggleA == 1) then
var.activeToggleA = -1;
endif
var.toggleA = (1 * var.activeToggleA);
if (var.activeToggleA == 1) then
keyboard.g && keyboard.t = wiimote.A
else
keyboard.enter = wiimote.A
end if
if (var.toggleA == 1) then
keyboard.Up = wiimote1.Up
keyboard.Down = wiimote1.Down
keyboard.escape = wiimote1.B
else
keyboard.K = wiimote1.Up
keyboard.J = wiimote1.Down
keyboard.ctrl && keyboard.w = wiimote1.B
end if
//The following code indicates that the Wiimote is connected properly.
//The LED's will bounce back and forth from left to right.
//KITT code from --removed to get past spam bot, grr--
//I've modified it a bit to match my own tastes.
if 0 = 0 then
if var.kitt = 0 then
wiimote.Leds = 1
endif
if var.kitt = 1 then
wiimote.Leds = 2
endif
if var.kitt = 2 then
wiimote.Leds = 4
endif
if var.kitt = 3 then
wiimote.Leds = 8
endif
if var.kitt = 4 then
wiimote.Leds = 8
endif
if var.kitt = 5 then
wiimote.Leds = 4
endif
if var.kitt = 6 then
wiimote.Leds = 2
endif
if var.kitt = 7 then
wiimote.Leds = 1
endif
wait .25 s
var.kitt = (var.kitt + 1) % 8
endif
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|