MotionController
Axis
MultiAxis
IO
IOPoint
NetworkNode
RsiError
Sample Apps
Changelog
RapidCode API
Contact us
Support
◆
KeyGet()
int32 KeyGet
(
int32
milliseconds
)
pure virtual
Wait for a key to be pressed and return its value.
Description:
KeyGet returns the value of the key pressed.
Parameters
milliseconds
The number of milliseconds to wait for the key to be pressed.
Use
RSIWaitFOREVER
(-1) to wait forever.
Use
RSIWaitPOLL
(0) to return immediately.
Returns
(int32) -1 = no key was pressed, or value of ASCII character.
Sample Code:
while
(controller->KeyGet(
RSIWaitPOLL
) < 0)
{
// waiting for someone to press a key
}
Examples
ControllerInterrupts.cpp
,
MultiaxisMotion.cpp
,
SyncInterrupt.cpp
,
UserLimitDigitalInputAction.cpp
, and
UserLimitStateAction.cpp
.