User Tools

Site Tools


script:module:input

Differences

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

Link to this comparison view

Next revision
Previous revision
script:module:input [2015-11-15 20:31]
127.0.0.1 external edit
script:module:input [2019-12-16 09:23] (current)
skyjake [Functions]
Line 1: Line 1:
-Module ​that provides access to the input subsystem.+====== Input (Module) ======
  
  
-====== Functions ======+Module that provides access to the input subsystem.
  
  
-{{Identifier|bindEvent}} ( {{TypeArgument|Text|eventSpec}},​ {{TypeArgument|Text|command}} )+===== Functions =====
  
-Creates an [[event_binding]] for the provided event. Whenever the event is received, the specified command will be executed. Returns True or False to indicate successful creation of the binding. 
  
 +#​@Identifier_HTML~bindEvent~@#​ (
 + #​@Arg_HTML~Text,​eventSpec~@#,​
 + #​@Arg_HTML~Text,​command~@#​ )
  
-Input.bindEvent("​key-k-down"​'echo "K was pressed!"'​)+Creates an [[guide:​event binding]] for the provided eventWhenever the event is receivedthe specified command will be executed. Returns True or False to indicate successful creation of the binding.
  
 +  Input.bindEvent("​key-k-down",​ 'echo "K was pressed!"'​)
  
-{{Note|This function works the same way as the console command ​{{cmd|bindevent}}}}+This function works the same way as the console command ​''​bindevent''​.
  
  
  
script/module/input.1447612267.txt.gz ยท Last modified: 2019-11-17 18:03 (external edit)