Mount Fuji Engine  0.8b
MF_API bool MFInput_WasPressed ( int  button,
int  device,
int  deviceID = 0 
)

Test if a button was pressed this frame.

Parameters
buttonThe button or control on the device to test. 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.
Returns
True if the button was pressed this frame.
See Also
MFInput_Read(), MFInput_WasReleased()