Mount Fuji Engine  0.8b
MF_API float MFInput_Read ( int  button,
int  device,
int  deviceID = 0,
float *  pPrevState = NULL 
)

Read input from a device.

Parameters
buttonThe button or control on the device to read. Must be a member of the MFGamepadButton, MFMouseButton or MFKeyboardButton enumerated types.
deviceThe source device. Must be a member of the MFInputDevice enumerated type.
deviceIDThe source device index.
pPrevStateOptional 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()