| View previous topic :: View next topic |
| Author |
Message |
topdod
Joined: 21 Aug 2007 Posts: 2
Digg It |
Posted: Tue Aug 21, 2007 2:33 pm Post subject: Classic control help |
|
|
I got a Classic control a little while ago and I want to use it with glovepie but...I have been looking around for ages but no help found
Do I just plug the classic control into the wiimote?
if it is just that then what am I doing wrong?
it wont work for some reason
Please help me!
I hope I posted this in the correct area... |
|
| Back to top |
|
 |
marclar83

Joined: 24 Aug 2007 Posts: 18 Location: Quebec
Digg It |
Posted: Thu Aug 30, 2007 12:06 am Post subject: |
|
|
Yes you just plug-it in the wii remote and you use a script to enable the classic controller for your application.
You need the most recent version of glovePIE to use the classic controller.
(v0.29)
If you don't have a script for the classic controller use mine and change the buttons mapping in the top section of the script
| Code: | // Script to map the classic controller
// Mapped by default for Snes9X
// Programmed by Marc-Andre Larouche
// August 2007
// Change your button mapping here
Key.C = Wiimote.Classic.b
Key.V = Wiimote.Classic.a
Key.X = Wiimote.Classic.y
Key.D = Wiimote.Classic.x
Key.A = Wiimote.Classic.L
Key.S = Wiimote.Classic.R
Key.Up = Wiimote.Classic.Up
Key.Down = Wiimote.Classic.Down
Key.Left = Wiimote.Classic.Left
Key.Right = Wiimote.Classic.Right
Key.Tab = Wiimote.Classic.Home
Key.Space = Wiimote.Classic.Plus
Key.Enter = Wiimote.Classic.Minus
Key.F1 = Wiimote.Classic.ZL
// I use a variable for combined Keys.
Var.ShiftF1 = Wiimote.Classic.ZR
// This section active Shift+F1 when the button ZR on the classic is press
if Var.ShiftF1 == true and !Var.ShiftF1_en == true then
Var.ShiftF1_en = true
Key.Shift = true;
Key.F1 = true;
end if
// This section desactive Shift+F1 when the button ZR on the classic is release
if Var.ShiftF1 != true and Var.ShiftF1_en == true then
Var.ShiftF1_en = false
Key.Shift = false;
Key.F1 = false;
end if
// The following script mapped the left analog stick to the same controls as the D-pad
if Wiimote.Classic.Joy1X >= 0.6 and !Var.Joy1Right_en == true then
Var.Joy1Right_en = true
Key.Right = true;
end if
if Wiimote.Classic.Joy1X <= 0.1 and Var.Joy1Right_en == true then
Var.Joy1Right_en = false
Key.Right = false;
end if
if Wiimote.Classic.Joy1X <= -0.6 and !Var.Joy1Left_en == true then
Var.Joy1Left_en = true
Key.Left = true;
end if
if Wiimote.Classic.Joy1X >= -0.1 and Var.Joy1Left_en == true then
Var.Joy1Left_en = false
Key.Left = false;
end if
if Wiimote.Classic.Joy1Y <= -0.6 and !Var.Joy1Up_en == true then
Var.Joy1Up_en = true
Key.Up = true;
end if
if Wiimote.Classic.Joy1Y >= -0.1 and Var.Joy1Up_en == true then
Var.Joy1Up_en = false
Key.Up = false;
end if
if Wiimote.Classic.Joy1Y >= 0.6 and !Var.Joy1Down_en == true then
Var.Joy1Down_en = true
Key.Down = true;
end if
if Wiimote.Classic.Joy1Y <= 0.1 and Var.Joy1Down_en == true then
Var.Joy1Down_en = false
Key.Down = false;
end if
|
_________________ *marclar83* |
|
| Back to top |
|
 |
|