hwISession RegisterSpaceballCallback
Allows registration of Tcl callbacks for Spaceball button events.
Syntax
hwISession_handle RegisterSpaceballCallbackbuttonId, procName
Application
HyperWorks Tcl Query
Inputs
- buttonID
- The button ID to register a callback against. Valid values are identified by calling the GetSpaceballButtonMin and GetSpaceballButtonMax commands.
- procName
- The name of the procedure to call when the Spaceball event occurs. The procedure takes
a state parameter, which is the state of the button at the time that it is pressed.
- True
- Indicates the button is pressed.
- False
- Indicates the button is released.
Error
Success (0) or an error code.