#author("2023-11-17T09:01:42+00:00","default:admin","admin")
#author("2024-12-23T09:06:00+09:00","default:admin","admin")
*Assign Input Device [#v0b086db]
You can assign keys and buttons to operate your game with a keyboard, controller, or mouse.
The "Key/Button Assignments" button opens a dialog box for specifying assignments, but you can also directly edit the text to assign them.
By following the format, you can link the keys/buttons to functions in the game.

To restore the text edited to the default values, click the "Restore Default Values" button in the "Key/Button Assignments" dialog box.

See [[Assign Input Device:https://rpgbakin.com/pukiwiki_en/?Rules+and+Operations#s499f292]] for the "Key/Button Assignments" dialog.
See [[Assign Input Device:https://rpgbakin.com/pukiwiki_en/?Move+and+Operate#s499f292]] for the "Key/Button Assignments" dialog.

''&color(red){At this time, only XInput controllers are supported for use with games exported as published works.};''
''&color(red){(DirectInput controllers are also available on Bakin's tools, through Steam's controller support.)};''


#contents
----
**Sample Description [#ga75d803]

 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 [#p06679a2]
|Scene Labels|Description|h
|:WALK|Assign the bind definitions after this line to the "player walking" operation|
|:MENU|Assign the bind definitions after this line to the "menu is being displayed" operation|



**Input Type List [#r5647bbc]
|Input Types|Description|h
|UP|Move the player upward / Move one selected menu entry up|
|DOWN|Move the player down / Move one selected menu entry down|
|RIGHT|Move the player right / Move one selected menu entry right|
|LEFT|Move the player left / Move one selected menu entry left|
|DECIDE|Decide|
|CANCEL|Cancel|
|MENU|Menu|
|DASH|Dash|
|JUMP|Jump|
|CAMERA_VERTICAL_ROT_UP|Camera Up Rotation|
|CAMERA_VERTICAL_ROT_DOWN|Camera Down Rotation|
|CAMERA_HORIZONTAL_ROT_CLOCKWISE|Camera Clockwise|
|CAMERA_HORIZONTAL_ROT_COUNTER_CLOCKWISE|Camera Counterclockwise|
|CAMERA_ZOOM_IN|Camera Zoom In|
|CAMERA_ZOOM_OUT|Camera Zoom Out|
|CAMERA_POSITION_RESET|Camera Reset|
|ACTION1|Action (Shooting) 1|
|ACTION2|Action (Shooting) 2|
|ACTION3|Action (Shooting) 3|
|TOUCH|Touch Input|
|FAST_FORWARD|Fast-forward to events during test play|

**Key Codes List [#qe5d22f8]
These keys can be assigned. All of them do not support analog values.

|Key Codes|h
|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 [#wd1710cb]
|Gamepad Input Codes|Description|Analog Value Support|h
|DPAD_UP|D-pad Up| |
|DPAD_DOWN|D-pad Down| |
|DPAD_LEFT|D-pad Left| |
|DPAD_RIGHT|D-pad Right| |
|PAD_BUTTON0|A| |
|PAD_BUTTON1|B| |
|PAD_BUTTON2|X| |
|PAD_BUTTON3|Y| |
|PAD_BUTTON4|START| |
|PAD_BUTTON5|BACK| |
|PAD_BUTTON6|Left Stick pressed in| |
|PAD_BUTTON7|Right Stick pressed in| |
|PAD_BUTTON8|Left Shoulder Button| |
|PAD_BUTTON9|Right Shoulder Button| |
|PAD_BUTTON10|Left Trigger Button|Y|
|PAD_BUTTON11|Right Trigger Button|Y|
|PAD_LEFT_THUMB_X|Left Stick X-axis (plus/minus indistinguishable)|Y|
|PAD_LEFT_THUMB_Y|Left Stick Y-axis (plus/minus indistinguishable)|Y|
|PAD_RIGHT_THUMB_X|Right Stick X-axis (plus/minus indistinguishable)|Y|
|PAD_RIGHT_THUMB_Y|Right Stick Y-axis (plus/minus indistinguishable)|Y|
|PAD_LEFT_THUMB_X_PLUS|Left Stick X-axis Plus|Y|
|PAD_LEFT_THUMB_X_MINUS|Left Stick X-axis Minus|Y|
|PAD_LEFT_THUMB_Y_PLUS|Left Stick Y-axis Plus|Y|
|PAD_LEFT_THUMB_Y_MINUS|Left Stick Y-axis Minus|Y|
|PAD_RIGHT_THUMB_X_PLUS|Right Stick X-axis Plus|Y|
|PAD_RIGHT_THUMB_X_MINUS|Right Stick X-axis Minus|Y|
|PAD_RIGHT_THUMB_Y_PLUS|Right Stick Y-axis Plus|Y|
|PAD_RIGHT_THUMB_Y_MINUS|Right Stick Y-axis Minus|Y|
|PAD_LEFT_PRESSED_THUMB_X_PLUS|Left Stick pressed in, X-axis Plus|Y|
|PAD_LEFT_PRESSED_THUMB_X_MINUS|Left Stick pressed in, X-axis Minus|Y|
|PAD_LEFT_PRESSED_THUMB_Y_PLUS|Left Stick pressed in, Y-axis Plus|Y|
|PAD_LEFT_PRESSED_THUMB_Y_MINUS|Left Stick pressed in, Y-axis Minus|Y|
|PAD_RIGHT_PRESSED_THUMB_X_PLUS|Right Stick pressed in, X-axis Plus|Y|
|PAD_RIGHT_PRESSED_THUMB_X_MINUS|Right Stick pressed in, X-axis Minus|Y|
|PAD_RIGHT_PRESSED_THUMB_Y_PLUS|Right Stick pressed in, Y-axis Plus|Y|
|PAD_RIGHT_PRESSED_THUMB_Y_MINUS|Right Stick pressed in, Y-axis Minus|Y|

**Mouse Input Codes List [#r5a88193]
|Mouse Input Codes|Description|Analog Value Support|h
|MOUSE_POS_X|Mouse Cursor X-coordinate|Y|
|MOUSE_POS_Y|Mouse Cursor Y-coordinate|Y|
|MOUSE_BUTTON_L|Left-Click| |
|MOUSE_BUTTON_R|Right-Click| |
|MOUSE_BUTTON_M|Wheel pressed in| |
|MOUSE_WHEEL|Wheel Rotation (up/down indistinguishable)|Y|
|MOUSE_WHEEL_PLUS,|Wheel Up Rotation|Y|
|MOUSE_WHEEL_MINUS,|Wheel Down Rotation|Y|

Front page   Edit Diff History Attach Copy Rename Reload   New Page list Search Recent changes   Help   RSS of recent changes