# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
#
# ---
#
# This file contains touchHLE's recommended default options for various apps.
#
# *** Don't edit this file yourself! Use touchHLE_options.txt instead. ***
#
# ---
#
# Each line in this file specifies options for an app; there should only be one
# line per app. A line should consist of the identifier for an app, followed by
# a colon (:), followed by the options to apply. To find out an app's
# identifier, you can run it in touchHLE and look at the “App bundle info”
# output. To get a list of possible options, see OPTIONS_HELP.txt or run
# touchHLE with the --help flag.
#
# Text on a line following a hash sign (#) is treated as a comment and ignored.
# Empty lines are also ignored.
#
# Guidelines for default options:
# - Even if an app supports auto-rotation, it's good to specify the required
#   orientation anyway, so that it doesn't display in the wrong orientation for
#   a few seconds during startup.
# - The scale hack is not exactly faithful to the original experience, and there
#   is no scale factor that works for everyone, so it shouldn't be used here.
# - Use --button-to-touch= for convenience if it's a game playable with the
#   accelerometer and has touch targets in predictable locations.
# - Use --stabilize-virtual-cursor= if the game's menus are practically unusable
#   without it.

# Super Monkey Ball and Super Monkey Ball Lite
# B = speed up level intro, Start = pause
com.ooi.supermonkeyball: --landscape-left --y-tilt-offset=24 --button-to-touch=B,470,160 --button-to-touch=Start,240,10
smblite: --landscape-left --y-tilt-offset=24 --button-to-touch=B,470,160 --button-to-touch=Start,240,10

# Crash Bandicoot Nitro Kart 3D
# A = jump/drift, B = brake, Start = pause, X/Y = use item
com.vgmobile.cnk2: --landscape-left --button-to-touch=A,240,160 --button-to-touch=B,240,310 --button-to-touch=Start,10,310 --button-to-touch=Y,470,310 --button-to-touch=X,446,30

# Mystery Mania
com.ea.mysterymania.inc: --landscape-left

# Fastlane Street Racing
# A = accelerate, B = brake, X = Camera, Start = Pause
com.atodab.actane: --landscape-left --button-to-touch=A,430,300 --button-to-touch=B,30,300 --button-to-touch=X,15,15 --button-to-touch=Start,470,15

# Wolfenstein 3D
com.idsoftware.wolf3d: --landscape-right

# Spore Origins
com.ea.spore.naj.efigsj: --landscape-left --y-tilt-offset=35
com.ea.spore.row.efigsj: --landscape-left --y-tilt-offset=35

# KataDama (I Love Katamari)
com.namconetworks.katamari: --landscape-left --stabilize-virtual-cursor=0.1,10 --y-tilt-offset=24 --button-to-touch=Start,240,15

# Wolfenstein RPG
com.eamobile.wolfbv: --landscape-left --stabilize-virtual-cursor=0.1,10 --button-to-touch=A,240,160 --button-to-touch=B,240,280 --button-to-touch=X,26,280 --button-to-touch=Y,454,280 --button-to-touch=DPadLeft,34,178 --button-to-touch=DPadUp,76,140 --button-to-touch=DPadRight,116,180 --button-to-touch=DPadDown,76,220
com.eamobile.wolfinc: --landscape-left --stabilize-virtual-cursor=0.1,10 --button-to-touch=A,240,160 --button-to-touch=B,240,280 --button-to-touch=X,26,280 --button-to-touch=Y,454,280 --button-to-touch=DPadLeft,34,178 --button-to-touch=DPadUp,76,140 --button-to-touch=DPadRight,116,180 --button-to-touch=DPadDown,76,220

# Doom II RPG
com.idsoftware.Doom2rpg: --landscape-left --stabilize-virtual-cursor=0.1,10 --button-to-touch=A,240,160 --button-to-touch=B,240,280 --button-to-touch=X,176,280 --button-to-touch=Y,320,280 --button-to-touch=DPadLeft,34,178 --button-to-touch=DPadUp,76,140 --button-to-touch=DPadRight,116,180 --button-to-touch=DPadDown,76,220

# Tony Hawk's Pro Skater 2
# A = Jump, B = Grab, X = Flip, Y = Grind, Start = Pause
com.activision.thps2: --landscape-left --button-to-touch=DPadLeft,30,235 --button-to-touch=DPadUp,85,180 --button-to-touch=DPadRight,135,235 --button-to-touch=DPadDown,85,285 --button-to-touch=Start,240,30 --button-to-touch=A,395,280 --button-to-touch=B,445,230 --button-to-touch=X,345,230 --button-to-touch=Y,395,185

# Head2Head
com.darxun: --landscape-right --y-tilt-offset=24

# Jackpot Casino
com.chillingo.jackpotcasino: --landscape-right

# MotoRacing GP
# A = wheelie, B = restore
com.darxun.motoracinggp: --landscape-right --button-to-touch=A,25,295 --button-to-touch=B,115,295

# Warrior Nation Blade
# Left/Right = Walk, A = Attack, B = Defend, X = Magic, Y = Secondary Attack, LeftShoulder = Special, Start = Pause
com.bestsungame.warriornationblade:  --button-to-touch=DPadLeft,50,285 --button-to-touch=DPadRight,120,285 --button-to-touch=A,430,260 --button-to-touch=B,440,185 --button-to-touch=X,360,280 --button-to-touch=Y,230,270 --button-to-touch=LeftShoulder,270,30 --button-to-touch=Start,460,20

# Resident Evil 4
jp.co.capcom.res4: --landscape-left --stabilize-virtual-cursor=0.1,10 --button-to-touch=A,430,280 --button-to-touch=B,440,200 --button-to-touch=X,360,200 --button-to-touch=Y,440,150 --dpad-to-touch=25,200,95,100 --stick-to-touch=25,200,95,100

# Earthworm Jim
# Dpad = Move, A = Jump, B = Whip, X = Fire
# Note: "Force composition" flag is needed to fix broken render in the level select screen.
com.gameloft.Earthworm: --landscape-left --dpad-to-touch=30,194,80,84 --button-to-touch=A,442,284 --button-to-touch=X,378,248 --button-to-touch=B,442,212 --button-to-touch=Start,448,32 --force-composition

# TV Show King
com.gameloft.TVSK: --landscape-right

# CSI: Miami
com.gameloft.csimiami: --landscape-left

# MLB World Series 2009
com.mlb.mlb2009: --landscape-left

# Wave Blazer
com.polarbit.waveblazer: --landscape-left

# Command & Conquer: Red Alert
com.ea.candcra.row: --landscape-left

# Defender chronicles
# (force composition fixes black boxes on Android Adreno GPUs)
com.chillingo.defenderchronicles: --landscape-left --force-composition

# Tom Clancy's Splinter Cell: Conviction
# Note: "Force composition" flag is needed to fix broken render after the first level.
com.gameloft.SplinterCell: --force-composition

# Iron Man
# A = Fire, X = Dodge (on Level Tutorial 1), B = Dodge (on other levels), Start = Pause
com.paramount.IronMan: --landscape-right --button-to-touch=A,450,160 --button-to-touch=X,40,255 --button-to-touch=B,40,164 --button-to-touch=Start,60,20

# Prince of Persia: Warrior Within
# Notice that for directional buttons to work, first you need to go to Options > Controls and choose Virtual Pad
# DPad = Walk, A = Sword, B = Defense, X = Jump, Y = Grab, Start = Pause, LeftShoulder = Resume
com.gameloft.POP: --landscape-left --button-to-touch=DPadUp,90,190 --button-to-touch=DPadRight,135,235 --button-to-touch=DPadDown,90,280 --button-to-touch=DPadLeft,45,235 --button-to-touch=A,340,280 --button-to-touch=B,385,220 --button-to-touch=X,445,175 --button-to-touch=Y,460,300 --button-to-touch=Start,21,28 --button-to-touch=LeftShoulder,240,100

# Shrek 4 / Forever After
# Notice that for directional buttons to work, first you need to go to Options > Controls and choose Virtual Pad
# DPad = Walk, A = Punch, X = Jump, Y = Skip (cutscenes), Start = Pause
com.gameloft.Shrek4: --landscape-left --button-to-touch=DPadDown,44,278 --button-to-touch=DPadUp,52,224 --button-to-touch=DPadLeft,32,243 --button-to-touch=DPadRight,144,234 --button-to-touch=A,344,277 --button-to-touch=X,437,231 --button-to-touch=Start,33,28 --button-to-touch=Y,409,18
com.gameloft.Shrek4Free: --landscape-left --button-to-touch=DPadDown,44,278 --button-to-touch=DPadUp,52,224 --button-to-touch=DPadLeft,32,243 --button-to-touch=DPadRight,144,234 --button-to-touch=A,344,277 --button-to-touch=X,437,231 --button-to-touch=Start,33,28 --button-to-touch=Y,409,18

# Asphalt 4 Elite Racing
# DPad = left and right, A = Nitro, X = Brake, Start = Pause
com.gameloft.ASPHALT4: --button-to-touch=DPadLeft,30,300 --button-to-touch=DPadRight,300,300 --button-to-touch=A,298,385 --button-to-touch=X,230,425 --button-to-touch=Start,20,20

# Asphalt 5
# A = Nitro, B = Brake, Start = Pause
com.gameloft.Asphalt5: --landscape-left --button-to-touch=A,415,295 --button-to-touch=B,60,300 --button-to-touch=Start,25,25

# Skater Nation
# DPad, A = A, B = B, Start = Pause, LeftShoulder = Resume
com.gameloft.SkateNation: --landscape-left --button-to-touch=DPadLeft,45,237 --button-to-touch=DPadRight,132,237 --button-to-touch=DPadUp,90,190 --button-to-touch=DPadDown,90,280 --button-to-touch=A,435,275 --button-to-touch=B,350,240 --button-to-touch=Start,450,25 --button-to-touch=LeftShoulder,25,300

# Metal Gear Solid Touch
com.konami.mgst: --landscape-left
com.konami-europe.mgst: --landscape-left

# Dark Nebula
com.1337gamedesign.DarkNebula: --x-tilt-offset=-14

# Crash Bandicoot Nitro Kart 2
com.activision.CBNK2: --landscape-left

# FIFA 10
# Stick/Dpad = Move, A = Pass/Tackle, B,LeftShoulder = Shoot/Switch players, Start = Pause
com.ea.fifa10.bv: --landscape-left --button-to-touch=A,450,206 --button-to-touch=B,430,270 --button-to-touch=LeftShoulder,430,270 --button-to-touch=Start,160,16 --dpad-to-touch=25,195,100,100 --stick-to-touch=25,195,100,100
com.ea.fifa10inc: --landscape-left --button-to-touch=A,450,206 --button-to-touch=B,430,270 --button-to-touch=LeftShoulder,430,270 --button-to-touch=Start,160,16 --dpad-to-touch=25,195,100,100 --stick-to-touch=25,195,100,100

# FIFA 2010 WORLD CUP SOUTH AFRICA
# Stick = Move, A,LeftShoulder = Pass/Tackle/Switch players, B = Shoot/Slide, X = Skill, Start = Pause
com.ea.fifa10wc.bv: --landscape-left --button-to-touch=A,414,174 --button-to-touch=B,328,256 --button-to-touch=LeftShoulder,414,174 --button-to-touch=X,436,276 --button-to-touch=Start,160,16 --stick-to-touch=25,195,100,100
com.ea.fifa10wc.inc: --landscape-left --button-to-touch=A,414,174 --button-to-touch=B,328,256 --button-to-touch=LeftShoulder,414,174 --button-to-touch=X,436,276 --button-to-touch=Start,160,16 --stick-to-touch=25,195,100,100

# Real Racing
com.firemint.realracing: --landscape-left

# Cro-Mag Rally
com.pangea.cromag: --ignore-gl-errors

# Nanosaur 2
com.pangea.nano2: --ignore-gl-errors

# Bugdom 2
com.pangea.bug2: --ignore-gl-errors

# Rayman 2
# Stick = Move, A = Jump, X = Shoot/Skip cutscene, Y = First-person, B = Dive
com.gameloft.Rayman2: --stick-to-touch=22,210,90,100 --button-to-touch=A,376,280 --button-to-touch=X,435,220 --button-to-touch=Y,22,88 --button-to-touch=B,448,144 --button-to-touch=Start,16,16

# Casper
# (force composition fixes graphical issues)
com.mastertronic.casper: --force-composition

# Arvale
4rv4l3j0ur: --landscape-left

# Brothers In Arms: Hour Of Heroes
# 25 bytes is the minimum amount of bytes needed to clear the PVR flag stored on the stack.
# This prevents "Game Card has been removed" issue.
com.gameloft.BIA: --landscape-left --zero-stack-after-guest-to-host-call=25

# Hero of Sparta II
# Stick = Move, A = Jump, B = Quick attack, X = Block, Y = Weapon select, LeftShoulder = Focus kill
com.gameloft.HOS2: --stick-to-touch=28,206,84,84 --button-to-touch=Start,25,25 --button-to-touch=B,394,234 --button-to-touch=A,456,190 --button-to-touch=X,350,294 --button-to-touch=Y,434,22 --button-to-touch=LeftShoulder,446,286

# Unity's 3D World demo
com.unity3d.3Dworld: --landscape-left --force-composition

# Zombieville
com.KelliNoda.Zombieville: --landscape-left --force-composition

# Ace Combat Xi
# Start: Pause, DPad: Pitch/Yaw, Left stick: Pitch/Roll, Left shoulder button: Throttle, X: Brake, Y: Objective, B: Missile, A: Gun
com.namconetworks.AceCombatXi: --landscape-left --y-tilt-offset=45 --button-to-touch=Start,195,310 --dpad-to-touch=15,150,75,75 --button-to-touch=LeftShoulder,33,263 --button-to-touch=X,115,295  --button-to-touch=Y,355,230 --button-to-touch=B,440,260 --button-to-touch=A,355,300

# Tiki Towers
com.mrgoodliving.TikiTowers: --landscape-left

# Resident Evil Degeneration
jp.co.capcom.residentevil.en: --landscape-left --stabilize-virtual-cursor=0.1,10 --button-to-touch=A,430,280 --button-to-touch=B,440,200 --button-to-touch=Y,440,100 --button-to-touch=Start,30,30 --dpad-to-touch=25,200,95,100 --stick-to-touch=25,200,95,100

# COD Zombies
# DPad/Stick = Move, Left shoulder = Knife, A = Shoot, B = Aim, X = Reload, Y = Grenade, Start = Pause
com.activision.callofduty: --x-tilt-offset=-10 --dpad-to-touch=30,215,80,80 --stick-to-touch=30,215,80,80 --button-to-touch=A,387,210 --button-to-touch=B,455,185 --button-to-touch=X,455,25 --button-to-touch=Y,440,95 --button-to-touch=LeftShoulder,240,310 --button-to-touch=Start,20,25

# Pandemonium
# DPad/Stick = Move, Up = Switch Character, X = Fargus Attack, A = Fire, B = Jump, LeftShoulder = Switch Camera, Start = Pause
com.ea.pandyinc: --landscape-left --button-to-touch=DPadLeft,50,230 --button-to-touch=DPadRight,160,230 --button-to-touch=DPadDown,110,290 --button-to-touch=X,295,295 --button-to-touch=A,360,280 --button-to-touch=B,450,255 --button-to-touch=Start,445,15 --button-to-touch=LeftShoulder,15,15 --button-to-touch=DPadUp,240,40

# Samurai: Way of the warrior
com.madfingergames.Samurai: --force-composition

# NEX
com.StarByte.NEX: --landscape-left --force-composition

# Galaxy on Fire
# In Game controls A = Weapon Select, X = Boost, B = Fire, Y = Missle, Start = Pause
www.fishlabs.net.GalaxyOnFire: --landscape-right --button-to-touch=A,427,274 --button-to-touch=X,380,254 --button-to-touch=Y,124,291 --button-to-touch=B,444,221 --button-to-touch=Start,444,20

# Palm Heroes
com.palmheroes.PalmHeroes: --landscape-right

# Silent Hill: The Escape
com.konami-europe.silenthillescape: --x-tilt-offset=-45

# Dead Space
com.ea.deadspace.bv: --force-composition
com.ea.deadspace.inc: --force-composition
com.ea.deadspace.ipad.bv: --force-composition
com.ea.deadspace.ipad.inc: --force-composition

# NFS Hot Pursuit
com.ea.nfshp.bv: --force-composition
com.ea.nfshp.inc: --force-composition
com.ea.nfshp.ipad.bv: --force-composition
com.ea.nfshp.ipad.inc: --force-composition
