Skip to content

Commit

Permalink
Use touch optimized mouse input mode by default on platforms that mos…
Browse files Browse the repository at this point in the history
…t likely have a touch screen over a physical mouse
  • Loading branch information
schellingb committed Oct 17, 2024
1 parent b5dd41b commit 1c4accc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ else ifneq (,$(findstring ios,$(platform)))
endif
OUTNAME := dosbox_pure_libretro_ios.dylib
MINVERSION :=
COMMONFLAGS += -DDISABLE_DYNAREC=1
COMMONFLAGS += -DDISABLE_DYNAREC=1 -DDBP_IOS
ifeq ($(platform),ios-arm64)
CXX = c++ -arch arm64 -isysroot $(IOSSDK)
else
Expand Down
6 changes: 6 additions & 0 deletions core_options.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,15 @@ static retro_core_option_v2_definition option_defs[] =
"In touchpad mode use drag to move, tap to click, two finger tap to right-click and press-and-hold to drag", NULL,
"Input",
{
#if defined(ANDROID) || defined(DBP_IOS) || defined(HAVE_LIBNX) || defined(_3DS) || defined(WIIU) || defined(VITA)
{ "pad", "Touchpad mode (default, see description, best for touch screens)" },
{ "direct", "Direct controlled mouse (not supported by all games)" },
{ "true", "Virtual mouse" },
#else
{ "true", "Virtual mouse (default)" },
{ "direct", "Direct controlled mouse (not supported by all games)" },
{ "pad", "Touchpad mode (see description, best for touch screens)" },
#endif
{ "false", "Off (ignore mouse inputs)" },
},
"true"
Expand Down

0 comments on commit 1c4accc

Please sign in to comment.