Assign Input Device

This section describes key and button assignments for keyboard, controller, and mouse operation of the created game.
By following the format, you can link keys/buttons to functions in the game.
At this time, the text must be edited and assigned.

The default settings can be restored by pressing the Restore Default Settings button.


Sample Description

Ver 1.2
// Walk
:WALK
// Move Keyboard
bind UP W, UpArrow
bind DOWN S, DownArrow
bind RIGHT D, RightArrow
bind LEFT A, LeftArrow
// Move Controller
bind UP PAD_LEFT_THUMB_Y_PLUS 1.0, DPAD_UP
bind DOWN PAD_LEFT_THUMB_Y_MINUS 1.0, DPAD_DOWN
bind RIGHT PAD_LEFT_THUMB_X_PLUS 1.0, DPAD_RIGHT
bind LEFT PAD_LEFT_THUMB_X_MINUS 1.0, DPAD_LEFT
// Deadzone settings
Deadzone PAD_LEFT_THUMB 0.3
Deadzone PAD_RIGHT_THUMB 0.3
Deadzone PAD_LEFT_TRIGGER 0.3
Deadzone PAD_RIGHT_TRIGGER 0.3
Deadzone MOUSE 1
Deadzone MOUSE_WHEEL 1

Ver1.2 
The first line is the version definition. Leave it as it is.

// Walk
Two consecutive slashes make a comment line (a line for notes that has no meaning as a definition).

:WALK
Lines beginning with a colon are lines that describe the scene (scene label) in which the definitions after this line will be used.
:WALK, it means a scene where the player can walk. Other scene labels include :MENU (displaying the menu).

bind UP W, UpArrow
Lines beginning with bind are input definition lines. This means assigning the W key and UpArrow (up arrow) key to the UP input type.

bind UP PAD_LEFT_THUMB_Y_PLUS 1.0, DPAD_UP
The bind line may contain numbers, but the numbers are the coefficients of the analog sticks and other inputs. In this case, it means multiplying the stick tilt by 1.0 for PAD_LEFT_THUMB_Y_PLUS (when the gamepad left stick Y axis is tipped in the plus direction).
For example, in the bind line of the camera rotation function, increasing this number will increase the speed of rotation.

Deadzone PAD_LEFT_THUMB 0.3
Lines beginning with Deadzone are thresholds for analog sticks and other inputs.
In this case, PAD_LEFT_THUMB (gamepad left stick) means ignore tilts up to 0.3.


Scene Label List

Scene LabelsDescription
:WALKAssign the bind definitions after this line to the "player walking" operation
:MENUAssign the bind definitions after this line to the "menu is being displayed" operation

Input Type List

Input TypesDescription
UPMove the player upward / Move one selected menu entry up
DOWNMove the player down / Move one selected menu entry down
RIGHTMove the player right / Move one selected menu entry right
LEFTMove the player left / Move one selected menu entry left
DECIDEDecide
CANCELCancel
MENUMenu
DASHDash
JUMPJump
CAMERA_VERTICAL_ROT_UPCamera Up Rotation
CAMERA_VERTICAL_ROT_DOWNCamera Down Rotation
CAMERA_HORIZONTAL_ROT_CLOCKWISECamera Clockwise
CAMERA_HORIZONTAL_ROT_COUNTER_CLOCKWISECamera Counterclockwise
CAMERA_ZOOM_INCamera Zoom In
CAMERA_ZOOM_OUTCamera Zoom Out
CAMERA_POSITION_RESETCamera Reset
ACTION1Action (Shooting) 1
ACTION2Action (Shooting) 2
ACTION3Action (Shooting) 3
TOUCHTouch Input

Key Codes List

These keys can be assigned. All of them do not support analog values.

Key Codes
Backspace
Tab
Enter
Pause
CapsLock
Escape
Space
PageUp
PageDown
End
Home
LeftArrow
UpArrow
RightArrow
DownArrow
Print
Insert
Delete
Help
Alpha0
Alpha1
Alpha2
Alpha3
Alpha4
Alpha5
Alpha6
Alpha7
Alpha8
Alpha9
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
LeftWindows
RightWindows
NumPad0
NumPad1
NumPad2
NumPad3
NumPad4
NumPad5
NumPad6
NumPad7
NumPad8
NumPad9
NumPadMultiply
NumPadAdd
NumPadEnter
NumPadMinus
NumPadPeriod
NumPadDivide
F1
F2
F3
F4
F5
F6
F7
F8
F9
F10
F11
F12
F13
F14
F15
NumLock
ScrollLock
LeftShift
RightShift
LeftControl
RightControl
LeftAlt
RightAlt

Gamepad Input Codes List

Gamepad Input CodesDescriptionAnalog Value Support
DPAD_UPD-pad Up
DPAD_DOWND-pad Down
DPAD_LEFTD-pad Left
DPAD_RIGHTD-pad Right
PAD_BUTTON0A
PAD_BUTTON1B
PAD_BUTTON2X
PAD_BUTTON3Y
PAD_BUTTON4START
PAD_BUTTON5BACK
PAD_BUTTON6Left Stick pressed in
PAD_BUTTON7Right Stick pressed in
PAD_BUTTON8Left Shoulder Button
PAD_BUTTON9Right Shoulder Button
PAD_BUTTON10Left Trigger ButtonY
PAD_BUTTON11Right Trigger ButtonY
PAD_LEFT_THUMB_XLeft Stick X-axis (plus/minus indistinguishable)Y
PAD_LEFT_THUMB_YLeft Stick Y-axis (plus/minus indistinguishable)Y
PAD_RIGHT_THUMB_XRight Stick X-axis (plus/minus indistinguishable)Y
PAD_RIGHT_THUMB_YRight Stick Y-axis (plus/minus indistinguishable)Y
PAD_LEFT_THUMB_X_PLUSLeft Stick X-axis PlusY
PAD_LEFT_THUMB_X_MINUSLeft Stick X-axis MinusY
PAD_LEFT_THUMB_Y_PLUSLeft Stick Y-axis PlusY
PAD_LEFT_THUMB_Y_MINUSLeft Stick Y-axis MinusY
PAD_RIGHT_THUMB_X_PLUSRight Stick X-axis PlusY
PAD_RIGHT_THUMB_X_MINUSRight Stick X-axis MinusY
PAD_RIGHT_THUMB_Y_PLUSRight Stick Y-axis PlusY
PAD_RIGHT_THUMB_Y_MINUSRight Stick Y-axis MinusY
PAD_LEFT_PRESSED_THUMB_X_PLUSLeft Stick pressed in, X-axis PlusY
PAD_LEFT_PRESSED_THUMB_X_MINUSLeft Stick pressed in, X-axis MinusY
PAD_LEFT_PRESSED_THUMB_Y_PLUSLeft Stick pressed in, Y-axis PlusY
PAD_LEFT_PRESSED_THUMB_Y_MINUSLeft Stick pressed in, Y-axis MinusY
PAD_RIGHT_PRESSED_THUMB_X_PLUSRight Stick pressed in, X-axis PlusY
PAD_RIGHT_PRESSED_THUMB_X_MINUSRight Stick pressed in, X-axis MinusY
PAD_RIGHT_PRESSED_THUMB_Y_PLUSRight Stick pressed in, Y-axis PlusY
PAD_RIGHT_PRESSED_THUMB_Y_MINUSRight Stick pressed in, Y-axis MinusY

Mouse Input Codes List

Mouse Input CodesDescriptionAnalog Value Support
MOUSE_POS_XMouse Cursor X-coordinateY
MOUSE_POS_YMouse Cursor Y-coordinateY
MOUSE_BUTTON_LLeft-Click
MOUSE_BUTTON_RRight-Click
MOUSE_BUTTON_MWheel pressed in
MOUSE_WHEELWheel Rotation (up/down indistinguishable)Y
MOUSE_WHEEL_PLUS,Wheel Up RotationY
MOUSE_WHEEL_MINUS,Wheel Down RotationY

Front page   Edit Freeze Diff Backup Attach Copy Rename Reload   New List of pages Search Recent changes   Help   RSS of recent changes
Last-modified: 2022-10-29 (Sat) 11:31:25