Skip to content

Class

PlacementInputHandler

Generated GDScript class reference for GridPlacement.PlacementInputHandler.

Status
Current
Version
v6.3.0
Source updated
2026-10-29
Generated on
2026-10-29

6.3. These pages document the 6.3 release, where placeable is now entry (what changed) and PlacementOwner is deprecated (migration). Still on 6.2? Your version's guides ship inside the plugin itself, under addons/grid_placement/guides/; the 6.2 URLs on this site now redirect to this series.

Scene-free intent mapper: converts raw InputEvents and placement state into discrete InputIntent values. The host's _unhandled_input becomes a thin forwarder that matches on the returned intent. Extracted to make the input-to-intent branching directly unit-testable without a scene runner. Usage: var handler := PlacementInputHandler.new() handler.configure(actions) var intent := handler.resolve(event, brush_state, has_entry, has_terrain, mode, box_enabled) handler.handle_intent(intent, host, is_in_mode)

Source: addons/grid_placement/systems/building/placement_input_handler.gd

Syntax

class PlacementInputHandler extends RefCounted

Members

NameKindSummary
DEMOLISH_BOX_CLICK_SLOP_PXFieldHow far a demolish box may grow before it stops being a plain click, in pixels. The box gesture is a drag-select; a box this small is the click the press would have been, and it must do what that press would have done. Raised from 6 after the gesture was reported as "a click turns into a drag box too easily": at 6 px a normal click's drift crossed it, which painted a red marquee and then refused with "no demolishable objects in the box" instead of demolishing the piece under the cursor. Nothing usable is drag-selected inside 12 px, so the larger threshold costs no real gesture.
configureMethod
resolveMethod
is_in_modeProperty
is_demolishProperty
is_moveProperty
hotkeyProperty
transformProperty
releaseProperty
is_confirm_pressedMethod