Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions config.def.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@

#define DEFAULT_TOUCH_SCALE 1

#define DEFAULT_INPUT_STYLUS_PRESSURE_SENSITIVITY 70

#if defined(RARCH_MOBILE) || defined(HAVE_LIBNX) || defined(__WINRT__) || defined(__EMSCRIPTEN__) || defined (VITA)
#define DEFAULT_POINTER_ENABLE true
#else
Expand Down
10 changes: 8 additions & 2 deletions configuration.c
Original file line number Diff line number Diff line change
Expand Up @@ -2913,6 +2913,11 @@ static struct config_bool_setting *populate_settings_bool(
SETTING_BOOL("netplay_request_device_p16", &settings->bools.netplay_request_devices[15], true, false, false);
#endif

#ifdef ANDROID
SETTING_BOOL("input_stylus_enable", &settings->bools.input_stylus_enable, true, true, false);
SETTING_BOOL("input_stylus_require_contact_for_click", &settings->bools.input_stylus_require_contact_for_click, true, true, false);
SETTING_BOOL("input_stylus_hover_moves_pointer", &settings->bools.input_stylus_hover_moves_pointer, true, true, false);
#endif

#ifdef _3DS
SETTING_BOOL("new3ds_speedup_enable", &settings->bools.new3ds_speedup_enable, true, DEFAULT_NEW_3DS_SPEEDUP_ENABLE, false);
Expand Down Expand Up @@ -4233,9 +4238,10 @@ static struct config_uint_setting *populate_settings_uint(
#endif

#ifdef ANDROID
SETTING_UINT("input_sensor_orientation", &settings->uints.input_sensor_orientation, true, 0, false);
SETTING_UINT("input_stylus_pressure_sensitivity", &settings->uints.input_stylus_pressure_sensitivity, true, DEFAULT_INPUT_STYLUS_PRESSURE_SENSITIVITY, false);
SETTING_UINT("input_sensor_orientation", &settings->uints.input_sensor_orientation, true, 0, false);
#else
SETTING_UINT("input_sensor_orientation", &settings->uints.input_sensor_orientation, true, 1, false);
SETTING_UINT("input_sensor_orientation", &settings->uints.input_sensor_orientation, true, 1, false);
#endif

#if defined(HAVE_OVERLAY)
Expand Down
6 changes: 6 additions & 0 deletions configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,9 @@ typedef struct settings
unsigned nfs_readahead;
#endif
unsigned input_sensor_orientation;
#ifdef ANDROID
unsigned input_stylus_pressure_sensitivity;
#endif
} uints;

struct
Expand Down Expand Up @@ -1152,6 +1155,9 @@ typedef struct settings

#ifdef ANDROID
bool android_input_disconnect_workaround;
bool input_stylus_enable;
bool input_stylus_require_contact_for_click;
bool input_stylus_hover_moves_pointer;
#endif

#if defined(HAVE_COCOATOUCH)
Expand Down
Loading
Loading