ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:keybound

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
functions:keybound [2017/06/13 15:14] – created korshunfunctions:keybound [2017/06/13 15:16] (current) korshun
Line 1: Line 1:
 ====== KeyBound ====== ====== KeyBound ======
 {{tag>zdoom input}} {{tag>zdoom input}}
-''bool KeyBound(str name)''+''bool KeyBound(str alias)''
  
 +===== Description =====
 +Returns true if the key is bound to the specified alias.
 +
 +Works by reading ''StrParam(k:alias)'' and comparing it to ''"??? (**alias**)"''
 +
 +===== Examples =====
 +<code>
 +if (!KeyBound("+attack"))
 +    print(s:"Please bind an attack key");
 +</code>
functions/keybound.txt · Last modified: 2017/06/13 15:16 by korshun