Game (functions)/Inputs: Difference between revisions

From PMDOWiki
Imbion (talk | contribs)
Created page with "== GAME:IsKeyDown(System.Int32) == Checks if a player is making a certain physical keyboard input. === Arguments === * <code>keyid</code>: The ID of the input === Returns === True if the button is currently pressed. False otherwise. == GAME:IsInputDown(System.Int32) == Checks if a player is making a certain game input. === Arguments === * <code>inputid</code>: None === Returns === True if the input is currently pressed. False otherwise."
 
Imbion (talk | contribs)
No edit summary
 
Line 1: Line 1:
== GAME:IsKeyDown(System.Int32) ==
== IsKeyDown ==
 
 
Checks if a player is making a certain physical keyboard input.
 
 
=== Arguments ===
 
* <code>keyid</code>: The ID of the input
 
=== Returns ===
 
True if the button is currently pressed.  False otherwise.
 
== GAME:IsInputDown(System.Int32) ==
 
 
Checks if a player is making a certain game input.


Checks if a player is making a certain physical keyboard input. Returns true if the button is currently being pressed, false otherwise.


=== Arguments ===
=== Arguments ===
{| class="wikitable"
{{ArgHeader}}
{{ArgRow
|name=keyID
|type=Integer
|techt=System.Int32
|purp=The ID of the input.
}}
|}


* <code>inputid</code>: None
== IsInputDown ==
 
=== Returns ===


True if the input is currently pressed. False otherwise.
Checks if a player is making a certain game input. Returns true if the input is currently pressed, false otherwise.
{| class="wikitable"
{{ArgHeader}}
{{ArgRow
|name=keyID
|type=(undocumented)
|techt=System.Int32
|purp=The ID of the input.
}}
|}

Latest revision as of 00:02, 18 January 2026

IsKeyDown

Checks if a player is making a certain physical keyboard input. Returns true if the button is currently being pressed, false otherwise.

Arguments

Name Type Technical Type Purpose
keyID Integer System.Int32 The ID of the input.

IsInputDown

Checks if a player is making a certain game input. Returns true if the input is currently pressed, false otherwise.

Name Type Technical Type Purpose
keyID (undocumented) System.Int32 The ID of the input.