inpControllerButtonHit

Checks if controller button just pressed this frame (single press detection). Takes controller (controller handle from inpCreateController, positive integer), button (button ID constant, integer). Returns 1 if button just pressed this frame, 0 otherwise.

Input

Parameters & Returns

Parameters

controller Int
button Int

Returns

Int

Quick Summary

Checks if controller button just pressed this frame (single press detection). Takes controller (controller handle from inpCreateController, positive integer), button (button ID constant, integer). Returns 1 if button just pressed this frame, 0 otherwise.

Technical Exegesis...

Checks if controller button just pressed this frame (single press detection). Takes controller (controller handle from inpCreateController, positive integer), button (button ID constant, integer). Returns 1 if button just pressed this frame, 0 otherwise. Detects button press edge (transition from released to pressed), returns true only once per press.

Example

Example.bam
; No example implemented yet