button_guide: support for PlayStation controller icons

This commit is contained in:
Hyper
2024-12-07 17:05:12 +00:00
parent 0d1a5e1fa1
commit d9d4ca2196
8 changed files with 74 additions and 38 deletions

View File

@@ -273,7 +273,7 @@ void MessageWindow::Draw()
auto textMarginX = Scale(37);
auto textMarginY = Scale(45);
bool isController = g_isAppInit ? true : hid::detail::g_inputDevice == hid::detail::EInputDevice::Controller;
bool isController = g_isAppInit ? true : hid::detail::IsInputDeviceController();
bool isKeyboard = g_isAppInit ? false : hid::detail::g_inputDevice == hid::detail::EInputDevice::Keyboard;
if (DrawContainer(g_appearTime, centre, { textSize.x / 2 + textMarginX, textSize.y / 2 + textMarginY }, !g_isControlsVisible))