User Tools

Site Tools


Module that provides access to the input subsystem.


bindEvent ( Text|eventSpec, Text|command )

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.

Input.bindEvent(“key-k-down”, 'echo “K was pressed!”')

This function works the same way as the console command {{cmd|bindevent}}

script/module/input.txt · Last modified: 2015-11-15 20:31 (external edit)