private void SetJoypadButtonState(retro_device_id_joypad button, InputValue value) => JoypadButtons[(int)button] = value.isPressed;
#pragma warning restore IDE0051 // Remove unused private members

        private void SetJoypadDirection(retro_device_id_joypad direction, bool value) => JoypadButtons[(int)direction]   = value;