void FDirectInputJoystick::EventButtonReleased(const TSharedPtr<FGenericApplicationMessageHandler>& MessageHandler, EDirectInputPadKeyNames ePadName, FKey DIKey) { if(!IsRelease(ePadName-DIGamePad_Button1)) return; MessageHandler->OnControllerButtonReleased(DIKey.GetFName(), GetPlayerIndex(), false); }
void FDirectInputJoystick::EventAnalog(const TSharedPtr<FGenericApplicationMessageHandler>& MessageHandler, float Analog, EDirectInputPadKeyNames ePadName, FKey DIKey) { MessageHandler->OnControllerAnalog(DIKey.GetFName(), GetPlayerIndex(), Analog); }