hwISession RegisterSpaceballCallback

Allows registration of Tcl callbacks for Spaceball button events.

Syntax

hwISession_handle RegisterSpaceballCallback buttonId, 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.
If the procedure is not in the Tcl global namespace, the namespace must be specified.

Error

Success (0) or an error code.