|
MF_API float MFInput_Read |
( |
int |
button, |
|
|
int |
device, |
|
|
int |
deviceID = 0 , |
|
|
float * |
pPrevState = NULL |
|
) |
| |
Read input from a device.
- Parameters
-
button | The button or control on the device to read. Must be a member of the MFGamepadButton, MFMouseButton or MFKeyboardButton enumerated types. |
device | The source device. Must be a member of the MFInputDevice enumerated type. |
deviceID | The source device index. |
pPrevState | Optional pointer to receive the previous button state. Pass NULL if the previous state is not required. |
- Returns
- A float representing the input state.
- See Also
- MFInput_WasPressed(), MFInput_WasReleased()
|