0% found this document useful (0 votes)
1K views6 pages

Keymapper Andy

The document provides instructions on how to manually write a keymapper configuration file (.cfg) for the Andy emulator. It describes the file format and sections for defining keyboard and gamepad keys along with supported actions. Key mappings can be loaded on application launch from default directories or manually through the Andy GUI. An example keymapper config file for the game Temple Run is also included.

Uploaded by

trovadj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1K views6 pages

Keymapper Andy

The document provides instructions on how to manually write a keymapper configuration file (.cfg) for the Andy emulator. It describes the file format and sections for defining keyboard and gamepad keys along with supported actions. Key mappings can be loaded on application launch from default directories or manually through the Andy GUI. An example keymapper config file for the game Temple Run is also included.

Uploaded by

trovadj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

How to manually write a

keymapper .cfg
GHAZI CHAIEBVIERNES, 10 DE JUNIO DE 2016

Loading Config File


Each time application is launched, Andy attempts to load the
keymapper file for that application. It looks for a file which name
matches package ID of the launched application (app.id.cfg) in
the preconfigured applications or the following directories in
order:

1. User specific %APPDATA%\Roaming\Andy\keymapper


2. All users <ANDY_FOLDER>\resources\keymapper

You can also load a config file manually using the Andy GUI.

Configuration's file format

# <NAME_OF_GAME>

[Origin]

Author= <AUTHOR_NAME>

[Keys]

<KEYBOARD_KEY> = <ACTION>
[GamePad]

<GAMEPAD_KEY> = <KEYBOARD_KEY>

[Guidance]

<KEYBOARD_KEY> = <STRING_OR_VARIABLE_NAME_IN_STRING_SECTION>

[Strings]

<VARIABLE_NAME> = <STRING>

Supported keys of keyboard:

0 - 9;
A - Z;

Left, Right, Up, Down;

Space, Enter, Tab;

Minus, Equals;

Slash, Backslash;

Comma, Period, Semicolon, Apostrophe;

Left_Bracket, Right_Bracket.

Supported keys of gamepad:


A, B, X, Y;
Hat_Left, Hat_Right, Hat_Up, Hat_Down;

Leftstick_Left, Leftstick_Right, Leftstick_Up, Leftstick_Down;

Leftbutton, Rightbutton.

Supported actions:

Tap (x,y);
Tilt Absolute (x,y) Return;

Swipe Left (x,y);

Swipe Right (x,y);

Swipe Up (x,y);

Swipe Down (x,y);

SwipeHold Left (x,y);

SwipeHold Right (x,y);

SwipeHold Up (x,y);

SwipeHold Down (x,y);

Shake.

Also key can contain list of simultaneous actions. Simultaneous


actions should be listed and separated by semicolons.

Example

# Temple Run

[Origin]
Author = Andy OS Inc.

[Keys]

Up = Swipe Up

Down = Swipe Down

Left = Swipe Left

Right = Swipe Right

Z = Tilt Absolute (0,-45) Return

X = Tilt Absolute (0,45) Return

Space = Tap

[GamePad]

Hat_Up = Up

Hat_Down = Down

Hat_Left = Left

Hat_Right = Right
LeftStick_Up = Up

LeftStick_Down = Down

LeftStick_Left = Left

LeftStick_Right = Right

LeftButton =Z

RightButton =X

A = Up

B = Down

[Guidance]

Up = SJump

Down = SSlide

Left = STurnLeft

Right = STurnRight
Z = SMoveLeft

X = SMoveRight

Space = SSpace

[Strings]

SJump = Jump

SSlide = Slide

STurnLeft = Turn Left

STurnRight = Turn Right

SMoveLeft = Move Left

SMoveRight = Move Right

SSpace = Action

You might also like