General SNES Controller

From WiiLi

Jump to: navigation, search

Wiimote + Nunchuk

// Super Nintendo Controls
` By Keenan (AKA Gamexprt1)
` For the ZSNES Emulator

*_-= Controls =-_*
 // Wiimote:
  ` Plus = Start
  ` Minus = Select
  ` Right = A Button
  ` Down = B Button
  ` Up = X Button
  ` Left = Y Button
  ` B Button = Right Trigger
  ` One = Save
  ` Two = Load

 // Nunchuk:
  ` Z Button = Left Trigger
  ` Analog-Stick = D-Pad

` Buttons
 Enter = Wiimote.Plus // Start Button
 RightShift = Wiimote.Minus // Select
 X = Wiimote.Right // A Button
 Z = Wiimote.Down // B Button
 S = Wiimote.Up // X Button
 A = Wiimote.Left // Y Button
 D = Wiimote.B // R Button
 C = Wiimote.Nunchuk.ZButton // L Button

` D-Pad
 Right = (Wiimote.Nunchuk.JoyX >= .5)
 Left = (Wiimote.Nunchuk.JoyX <= -.5)
 Up = (Wiimote.Nunchuk.JoyY <= -.5)
 Down = (Wiimote.Nunchuk.JoyY >= .5)

` F Buttons
 F2 = Helddown(Wiimote.1, .7 S) // Save Game
 F4 = Helddown(Wiimote.2, .7 S) // Load Game

` Battery Info
 Var.Batt = (Wiimote.Battery / 48)
 Debug = "[Battery Level = " + ((100 * 48) * (Var.Batt / 192)) + "%}"
 If (Wiimote.Battery <= 10)
  Debug = "You may want to change/recharge your batteries"
 Endif 
Personal tools
Online Casino - best online casino reviews.
Facebook Developers - facebook applications, facebook developers, facebook development, social network application development and viral widget social media strategy