Module m.simple_input
Convenience function to acquire input focus
Functions
release () | Convenience function to release input focus |
register (node_or_string, callback) | Register a node and a callback to invoke when the node receives input |
unregister (node_or_string) | Unregister a previously registered node or all nodes registered from the calling script |
on_input (action_id, action) | Forward on_input calls to this function to detect input for registered nodes |
Functions
- release ()
- Convenience function to release input focus
- register (node_or_string, callback)
-
Register a node and a callback to invoke when the node
receives input
Parameters:
- node_or_string
- callback
- unregister (node_or_string)
-
Unregister a previously registered node or all nodes
registered from the calling script
Parameters:
- node_or_string
- on_input (action_id, action)
-
Forward on_input calls to this function to detect input
for registered nodes
Parameters:
- action_id ,
- action
Returns:
-
true if input a registerd node received input