NES Controls for Wiimote

From WiiLi

Jump to: navigation, search
//                         Duga's NES Controlls
//
// ****   Script by parappa29 (parappadude@juno.com) ****
// ****Feel free to post as long as I gets my credit!****
//
// Specifically designed for the JNES Emulator but will work with most
// Be sure to hold your Wiimote sideways!
//
// Use the Home functions to easily open roms and navigate the menu
// with the wiimote arrows.  Control Pad is set to arrow keys for ease!
//
// For a fun bonus feature jerk the wiimote up to cause button A
// press! (most games jump on A so I thought it'd be fun :P)
//
// Make sure to reconfigure emulator imput before use!
//
//                              Controls
//                         Up      =       Wiimote Right
//                        Down     =       Wiimote Left
//                       Right     =       Wiimote Down
//                        Left     =       Wiimote Up
//                         B       =       Wiimote One
//                         A       =       Wiimote Two
//                       Start     =          Plus
//                      Select     =         Minus
//
//
//                    Home Functions (Wiimote 1 Only)
//                Home + Minus     =       Save State
//                Home + Plus      =       Load State
//                Home +  B        =       Open ROM
//
//
//
//
Key.Ctrl+Key.O = Wiimote1.B+Wiimote1.Home
Key.F7 = Wiimote1.Home+Wiimote1.Plus
Key.F5 = Wiimote1.Home+Wiimote1.Minus
Key.Up = Wiimote1.Right
Key.Down = Wiimote1.Left
Key.Right = Wiimote1.Down
Key.Left = Wiimote1.Up
Key.N = Wiimote1.One
Key.M = Wiimote1.Two or var.rightdir
Key.Enter = Wiimote1.A
Key.Backslash = Wiimote1.Plus
Key.Shift = Wiimote1.Minus
if (not var.rightdir) and (not var.leftdir) then
    var.rightdir = wiimote.RelaccX > 20
    if var.rightdir then
       wait 500ms
       var.rightdir=false
       endif
    endif
Key.I = Wiimote2.Right
Key.K = Wiimote2.Left
Key.J = Wiimote2.Up
Key.L = Wiimote2.Down
Key.C = Wiimote2.One
Key.V = Wiimote2.Two or var.rightdir2
Key.Z = Wiimote2.Plus
Key.X = Wiimote2.Minus
if (not var.rightdir2) and (not var.leftdir2) then
    var.rightdir2 = wiimote2.RelaccX > 20
    if var.rightdir2 then
       wait 500ms
       var.rightdir2=false
       endif
    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