Unverified Commit 7dcbf160 authored by Libretro-Admin's avatar Libretro-Admin Committed by GitHub
Browse files

Merge pull request #80 from Exalm/pointer

Add an option to hide pointer
parents 63500136 e891bcbc
......@@ -102,6 +102,7 @@ void LibRetro::OnConfigureEnvironment() {
"Right analog function; C-Stick and Touchscreen Pointer|Touchscreen Pointer|C-Stick"},
{"citra_deadzone", "Emulated pointer deadzone (%); 15|20|25|30|35|0|5|10"},
{"citra_mouse_touchscreen", "Enable mouse input for touchscreen; enabled|disabled"},
{"citra_mouse_show_pointer", "Show mouse pointer for touchscreen; enabled|disabled"},
{"citra_use_virtual_sd", "Enable virtual SD card; enabled|disabled"},
{"citra_use_libretro_save_path", "Savegame location; LibRetro Default|Citra Default"},
{"citra_is_new_3ds", "3DS system model; Old 3DS|New 3DS"},
......@@ -187,6 +188,8 @@ void UpdateSettings() {
LibRetro::FetchVariable("citra_use_gdbstub", "disabled") == "enabled";
LibRetro::settings.mouse_touchscreen =
LibRetro::FetchVariable("citra_mouse_touchscreen", "enabled") == "enabled";
LibRetro::settings.mouse_show_pointer =
LibRetro::FetchVariable("citra_mouse_show_pointer", "enabled") == "enabled";
// These values are a bit more hard to define, unfortunately.
auto scaling = LibRetro::FetchVariable("citra_resolution_factor", "1x (Native)");
......
......@@ -19,6 +19,7 @@ struct CoreSettings {
LibRetro::CStickFunction analog_function;
bool mouse_touchscreen;
bool mouse_show_pointer;
} extern settings;
......
......@@ -7,6 +7,7 @@
#include "audio_core/audio_types.h"
#include "citra_libretro/citra_libretro.h"
#include "citra_libretro/core_settings.h"
#include "citra_libretro/environment.h"
#include "citra_libretro/input/input_factory.h"
#include "core/3ds.h"
......@@ -58,7 +59,7 @@ void EmuWindow_LibRetro::SwapBuffers() {
ResetGLState();
if (tracker != nullptr) {
if (tracker != nullptr && LibRetro::settings.mouse_show_pointer) {
tracker->Render(width, height);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment