Hide the pointer coordinates overlay

This commit is contained in:
Jesse Talavera-Greenberg 2023-08-12 22:30:40 -04:00
parent bff1880028
commit caf49a6ef7
2 changed files with 14 additions and 13 deletions

View File

@ -6,7 +6,7 @@ corename = "melonDS DS"
categories = "Emulator"
license = "GPLv3"
permissions = ""
display_version = "0.2.2"
display_version = "0.2.3"
# Hardware Information
manufacturer = "Nintendo"

View File

@ -204,18 +204,19 @@ void melonds::InputState::Update(const ScreenLayoutData& screen_layout_data) noe
touch = screen_layout_data.TransformPointerInput(pointerInput);
hybridTouch = screen_layout_data.TransformPointerInputToHybridScreen(pointerInput);
char text[1024];
snprintf(text, sizeof(text), "Pointer: (%d, %d) -> (%d, %d)", pointerInput.x, pointerInput.y, touch.x, touch.y);
retro_message_ext message{
.msg = text,
.duration = 60,
.priority = 0,
.level = RETRO_LOG_DEBUG,
.target = RETRO_MESSAGE_TARGET_OSD,
.type = RETRO_MESSAGE_TYPE_STATUS,
.progress = -1
};
retro::set_message(&message);
// TODO: Re-add this later when I add support for toggling it
// char text[1024];
// snprintf(text, sizeof(text), "Pointer: (%d, %d) -> (%d, %d)", pointerInput.x, pointerInput.y, touch.x, touch.y);
// retro_message_ext message{
// .msg = text,
// .duration = 60,
// .priority = 0,
// .level = RETRO_LOG_DEBUG,
// .target = RETRO_MESSAGE_TARGET_OSD,
// .type = RETRO_MESSAGE_TYPE_STATUS,
// .progress = -1
// };
// retro::set_message(&message);
}
if (cursorMode == CursorMode::Timeout) {