Log inGet started
Package

painter.inputMap

README.md

painter.inputMap

What a painter adds to walking about: the can, the arm in hand and its wheel, the tool and colour, changing her look, hiding, the map. It composes with the engine's default map (move, look, jump, sprint, crouch, interact), which the character controller activates. Both are in the "player" group, so a vehicle map or a menu that names that group stands them down together.

ControlLabelKeyboard and mousePadKind
paintPaintleft mouseright triggerbutton
aimAimright mouseleft triggerbutton
useUseEwestbutton
armWheelArmsF (held)north (held)button
armNext / armPrevNext / previous armX / Zd-pad right / leftbutton
toolNextNext toolQright shoulderbutton
pigmentNextNext colourRleft shoulderbutton
shedChangeVd-pad downbutton
hideHideCeastbutton
mapMapM, Tabselectbutton
pausePauseEscapestartbutton
throwThrowGleft triggerLEGACY: the prototype's paint bomb. No game action reads it (the mortar tin is an arm now); delete it with the prototype's glue under /zero/source/metropolis/game/, which activates this map

Game actions and the controls that answer them

The game reads actions by name through the host's input interface (Interfaces.ACTIONS). The adapter maps:

ActionControlNote
paintpaintwhile not aiming an arm
firepaintwhile aim is held, or mounted on the van's hose
aimaim"aim_hold" in settings: held, or a toggle
interactthe default map's interact, or usewith interactKit the kit owns the press and calls driver:interacted
sign, break_freeuse, heldsigning a finished wall; breaking a grab while a slip is left
skipuse, pressedskips the staged part of an arrest
hidehide
tool_next, pigment_nexttoolNext, pigmentNext
arm_next, arm_prev, arm_wheelarmNext, armPrev, armWheelthe wheel also takes the look stick or the pointer (metropolisUi Wheel.pick)
shedshed
map, pausemap, pause
horn, handbrakethe vehicle kit's own mapnot bound here

Rebinding (metropolisUi modules.settings): Settings.rebind(values, action, key) keeps a table of the player's own keys by action; the host applies it to these controls with the input system's rebinding call.