web_applet: Replace HIDButton with NpadButton

This commit is contained in:
german77
2021-10-24 01:02:56 -05:00
committed by Narr the Reg
parent b564f024f0
commit cc651c7c99
3 changed files with 42 additions and 34 deletions

View File

@ -16,8 +16,6 @@
#include "core/frontend/applets/web_browser.h"
enum class HIDButton : u8;
class GMainWindow;
class InputInterpreter;
class UrlRequestInterceptor;
@ -26,6 +24,10 @@ namespace Core {
class System;
}
namespace Core::HID {
enum class NpadButton : u64;
}
namespace InputCommon {
class InputSubsystem;
}
@ -114,7 +116,7 @@ private:
*
* @tparam HIDButton The list of buttons contained in yuzu_key_callbacks
*/
template <HIDButton... T>
template <Core::HID::NpadButton... T>
void HandleWindowFooterButtonPressedOnce();
/**
@ -123,7 +125,7 @@ private:
*
* @tparam HIDButton The list of buttons that can be converted into keyboard input.
*/
template <HIDButton... T>
template <Core::HID::NpadButton... T>
void HandleWindowKeyButtonPressedOnce();
/**
@ -132,7 +134,7 @@ private:
*
* @tparam HIDButton The list of buttons that can be converted into keyboard input.
*/
template <HIDButton... T>
template <Core::HID::NpadButton... T>
void HandleWindowKeyButtonHold();
/**