﻿// This is a script for Neptunia. 

debug = "On:" + Wiimote1.Exists + " Wiimote Battery Level:" + Wiimote1.Battery

   //Movement controls (use the left joystick on the Classic Pro) 



Key.W = Classic.LeftStickY < -0.4

Key.S = Classic.LeftStickY > 0.4

Key.A = Classic.LeftStickX < -0.4

Key.D = Classic.LeftStickX > 0.4

Key.Up = Classic.Up     //
Key.Down = Classic.Down  //
Key.Left = Classic.Left
Key.Right = Classic.Right 

Mouse.LeftButton  = Classic.L
Mouse.RightButton = Classic.R  


  // Camera + Flight Controls

Key.NUMPAD8 = Wiimote.Up

Key.NUMPAD5 = Wiimote.Down

Key.NUMPAD4 = Wiimote.Right

Key.NUMPAD6 = Wiimote.Left


// Dungeon Controls, etc.

 Key.K = Classic.Y                   // Hit enemy in Dungeonmap
 Key.K = Wiimote.B                   // Hit Enemy in Dugeons
 Key.Space = Wiimote.A               // Search for Treasure
Key.L = Classic.B					// Jump, Cancel, Defend or Escape 
Key.Space = Classic.X				// Search for Treasure, Exe Drive
Key.I = Classic.ZL					// Show Details 
Key.O = Classic.Plus					// Open Menu  
Key.Enter = Classic.A					// Confirm, Attack, Items, 
Key.Tab  = Classic.Home                      		                // Display Map, Config  
Key.R = Classic.ZR // Switch battle menu

//Key.Y = Wiimote.A // HDD On
//Key.X = Wiimote.Home // Switch
//Key.A = Wiimote.1 // Item
//Key.B = Wiimote.2 // Flee


//if Wiimote.RelAccX > 15
//   key.O = true;
//wait 25ms
//   key.O = false;
// endif

if Wiimote.RelAccY > 10
   key.O = true;
wait 25ms
   key.O = false;
endif


