Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
Citra2018
Commits
e891bcbc
Commit
e891bcbc
authored
Dec 06, 2020
by
Alexander Mikhaylenko
Browse files
Add an option to hide pointer
parent
76caa686
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/citra_libretro/citra_libretro.cpp
View file @
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)"
);
...
...
src/citra_libretro/core_settings.h
View file @
e891bcbc
...
...
@@ -19,6 +19,7 @@ struct CoreSettings {
LibRetro
::
CStickFunction
analog_function
;
bool
mouse_touchscreen
;
bool
mouse_show_pointer
;
}
extern
settings
;
...
...
src/citra_libretro/emu_window/libretro_window.cpp
View file @
e891bcbc
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment