Engine/src/Graphics/DX12/ApplicationDX12.cpp
// Convert the message ID into a ButtonState.
Convert the message ID into a ButtonState.
Convert the message ID into a ButtonState .
static ButtonState DecodeButtonState( UINT messageID )
{
    ButtonState buttonState;
    switch ( messageID )
    {
    case WM_LBUTTONUP:
    case WM_RBUTTONUP:
    case WM_MBUTTONUP:
    case WM_XBUTTONUP:
    {
        buttonState = ButtonState::Released;
    }
    break;
    case WM_LBUTTONDOWN:
    case WM_RBUTTONDOWN:
    case WM_MBUTTONDOWN:
    case WM_XBUTTONDOWN:
    {
        buttonState = ButtonState::Pressed;
    }
    break;
    }
    return buttonState;
}
static ButtonState DecodeButtonState ( UINT messageID ) { ButtonState buttonState ; switch ( messageID ) { case WM_LBUTTONUP : case WM_RBUTTONUP : case WM_MBUTTONUP : case WM_XBUTTONUP : { buttonState = ButtonState :: Released ; } break ; case WM_LBUTTONDOWN : case WM_RBUTTONDOWN : case WM_MBUTTONDOWN : case WM_XBUTTONDOWN : { buttonState = ButtonState :: Pressed ; } break ; } return buttonState ; }
Convert the message ID into a ButtonState.
Convert the message ID into a ButtonState .