GlovePIE:Perfect Cherry Blossom

From WiiLi

Jump to: navigation, search
//Classic Controller Mapping for Touhou 07 "Perfect Cherry Blossom"
//from Excel-2008
//http://whatistheexcel.com
//23 April 2008 for GlovePIE 0.30
//
//Update 26 October 2008: Links to informational pages have been
//corrected.
//
//Use, modify and distribute this script at your leisure.  I really don't 
//care.
//
//This script maps buttons to keys.  There is no method for changing keyboard
//controls in the game; you will have to make adjustments here.  This script
//may work with other Touhou games with little modification if any but I
//haven't tested this script on any other games.
//
//More information about the game (in English) is available at:
//http://touhou.wikia.com/wiki/Perfect_Cherry_Blossom
//
//An English-language patch for the game is available at:
//http://touhou.wikia.com/wiki/Perfect_Cherry_Blossom:_English_patch
//
//Default controls:
//Wii Remote only:
//Shoot: 1
//Slow: B
//Bomb: 2
//Skip dialogue: A
//Pause: Plus
//Screenshot: Minus
//
//Classic Controller:
//Shoot: b
//Slow: y
//Bomb: a, R, ZR
//Skip dialogue: x
//Pause: Plus
//Screenshot: ZL

//
//Wii Remote
//
Key.Left = Wiimote1.Up
Key.Right = Wiimote1.Down
Key.Up = Wiimote1.Right
Key.Down = Wiimote1.Left

//keys
Key.Z = Wiimote1.1 //shot
Key.X = Wiimote1.2 //bomb
Key.Shift = Wiimote1.B //slow
Key.Control = Wiimote1.A //skip dialogue
Key.Escape = Wiimote1.Plus //menu

//others
Key.Home = Wiimote1.Minus //screenshot
// = Wiimote1.Home

//
//Classic Controller
//
//directions
Key.Left = Wiimote1.Classic.Left
Key.Up = Wiimote1.Classic.Up
Key.Down = Wiimote1.Classic.Down
Key.Right = Wiimote1.Classic.Right

//analog mapping
Key.Left = Wiimote1.Classic.Joy1X < -0.5
Key.Up = Wiimote1.Classic.Joy1Y < -0.5
Key.Right = Wiimote1.Classic.Joy1X > 0.5
Key.Down = Wiimote1.Classic.Joy1Y > 0.5

//keys
Key.Z = Wiimote1.Classic.b //shot / confirm
Key.X = Wiimote1.Classic.a //bomb / cancel
Key.Shift = Wiimote1.Classic.y //slow
Key.Control = Wiimote1.Classic.x //skip dialogue
Key.Escape = Wiimote1.Classic.Plus //menu

//others
// = Wiimote1.Classic.LFull
Key.X = Wiimote1.Classic.RFull //also bomb
Key.X = Wiimote1.Classic.ZR
Key.Home = Wiimote1.Classic.ZL //screenshot
// = Wiimote1.Classic.Minus
// = Wiimote1.Classic.Home

wiimote1.Led1 = true
Personal tools