/*------------------------------------------------------------------------------ Rogue Legacy - Wiimote Script v2 By: Bighead - http://bhemuhelp.co.nf/ - bighead.0@gmail.com Supports: Wiimote + Nunchuk, Classic Controller Maps To: Keyboard -------------------------------------------------------------------------------- NOTE: DO NOT PLUG or UNPLUG EXTENSIONS WHILE THE SCRIPT IS RUNNING or KEYBOARD ARROW KEY INPUTS WILL GET STUCK. THIS WILL MAKE IT HARDER TO STOP THE SCRIPT. -------------------------------------------------------------------------------- Wiimote + Nunchuk Controls: +------------------+--------------------+----------------------------------+ | Action | Button | Mapped From | +------------------+--------------------+----------------------------------+ | Movement | Analog | Keyboard Arrow Keys | | Attack | A | Keyboard D | | Jump | B | Keyboard S | | Special | C | Keyboard A | | Cast Spell | Z | Keyboard W | | Dash Left | D-Pad Left | Keyboard Q | | Dash Right | D-Pad Right | Keyboard E | | Enter | + | Keyboard Enter | | Escape/Menu | - | Keyboard Escape | | Map/Options | 1 | Tab/Options during pause menu. | | Profile Card | 2 | L-Shift/Only during pause menu. | +------------------+--------------------+----------------------------------+ Classic Controller Controls: +------------------+--------------------+----------------------------------+ | Action | Button | Mapped From | +------------------+--------------------+----------------------------------+ | Movement | D-Pad/Analog | Keyboard Arrow Keys | | Attack | y | Keyboard D | | Jump | b | Keyboard S | | Special | a | Keyboard A | | Cast Spell | x | Keyboard W | | Dash Left | ZL | Keyboard Q | | Dash Right | ZR | Keyboard E | | Enter | + | Keyboard Enter | | Escape/Menu | - | Keyboard Escape | | Map/Options | R | Tab/Options during pause menu. | | Profile Card | L | L-Shift/Only during pause menu. | +------------------+--------------------+----------------------------------+ ------------------------------------------------------------------------------*/ if (Wiimote.Classic.Exists) then // Movement Keyboard.Up = (-2 < Wiimote.Classic.Joy1Y < -0.4) or Wiimote.Classic.Up Keyboard.Down = (2 > Wiimote.Classic.Joy1Y > 0.4) or Wiimote.Classic.Down Keyboard.Left = (-2 < Wiimote.Classic.Joy1X < -0.4) or Wiimote.Classic.Left Keyboard.Right = (2 > Wiimote.Classic.Joy1X > 0.4) or Wiimote.Classic.Right // Attack / Profile Card Keyboard.D = Wiimote.Classic.Y // Jump Keyboard.S = Wiimote.Classic.B // Special Keyboard.A = Wiimote.Classic.A // Cast Spell / Map/Options Keyboard.W = Wiimote.Classic.X // Dash Left Keyboard.Q = Wiimote.Classic.ZL // Dash Right Keyboard.E = Wiimote.Classic.ZR // Enter Keyboard.Enter = Wiimote.Classic.Plus // Escape/Menu Keyboard.Escape = Wiimote.Classic.Minus // Map/Options Keyboard.Tab = Wiimote.Classic.R // Profile Card Keyboard.LeftShift = Wiimote.Classic.L //------------------------------------------------------------------------------ elseif (Wiimote.Nunchuk.Exists) then // Movement Keyboard.Up = (-2 < Wiimote.Nunchuk.JoyY < -0.4) or (-2 < Wiimote.Classic.Joy1Y < -0.4) or Wiimote.Classic.Up Keyboard.Down = (2 > Wiimote.Nunchuk.JoyY > 0.4) or (2 > Wiimote.Classic.Joy1Y > 0.4) or Wiimote.Classic.Down Keyboard.Left = (-2 < Wiimote.Nunchuk.JoyX < -0.4) or (-2 < Wiimote.Classic.Joy1X < -0.4) or Wiimote.Classic.Left Keyboard.Right = (2 > Wiimote.Nunchuk.JoyX > 0.4) or (2 > Wiimote.Classic.Joy1X > 0.4) or Wiimote.Classic.Right // Attack Keyboard.D = Wiimote.A or Wiimote.Classic.Y // Jump Keyboard.S = Wiimote.B or Wiimote.Classic.B // Special Keyboard.A = Wiimote.Nunchuk.C or Wiimote.Classic.A // Cast Spell Keyboard.W + Keyboard.Tab = Wiimote.Nunchuk.Z or Wiimote.Classic.X // Dash Left Keyboard.Q = Wiimote.Left or Wiimote.Classic.ZL // Dash Right Keyboard.E = Wiimote.Right or Wiimote.Classic.ZR // Enter Keyboard.Enter = Wiimote.Plus or Wiimote.Classic.Plus // Escape/Menu Keyboard.Escape = Wiimote.Minus or Wiimote.Classic.Minus // Map/Options Keyboard.Tab = Wiimote.One or Wiimote.Classic.R // Profile Card Keyboard.LeftShift = Wiimote.Two or Wiimote.Classic.L endif //------------------------------------------------------------------------------