# 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

# 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

# SimCity
# (we neeed to force language to avoid a crash)
com.ea.simcitybv: --preferred-languages=en
com.ea.simcityinc: --preferred-languages=en

# 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
com.gameloft.BIA: --landscape-left

# 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
