aboutsummaryrefslogtreecommitdiff
path: root/overrides/scummvm.h
blob: 3fbd4f1065e895a51717242d7adbcfe5190ae4c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#include "overrides.h"

static const struct core_override_option scummvm_core_option_overrides[] = {
	{
		.key = "scummvm_gamepad_cursor_speed",
		.desc = "Cursor speed",
		.info = "Sets the mouse cursor speed multiplier. '1.0' is optimised for '320x200' or '320x240' games. '2.0' is recommended for higher resolution games.",
	},
	{
		.key = "scummvm_gamepad_cursor_acceleration_time",
		.desc = "Cursor acceleration",
	},
	{
		.key = "scummvm_analog_response",
		.blocked = true,
	},
	{
		.key = "scummvm_analog_deadzone",
		.blocked = true,
	},
	{
		.key = "scummvm_mouse_speed",
		.blocked = true,
	},
	{
		.key = "scummvm_speed_hack",
		.desc = "Speed Hack",
		.info = "Enables a safe speed hack that significantly reduces CPU requirements by allowing subtle timing inaccuracies. Requires restart.",
		.default_value = "enabled",
	},
	{ NULL }
};

me_bind_action scummvm_ctrl_actions[] =
{
	{ "UP       ",  1 << RETRO_DEVICE_ID_JOYPAD_UP},
	{ "DOWN     ",  1 << RETRO_DEVICE_ID_JOYPAD_DOWN },
	{ "LEFT     ",  1 << RETRO_DEVICE_ID_JOYPAD_LEFT },
	{ "RIGHT    ",  1 << RETRO_DEVICE_ID_JOYPAD_RIGHT },
	{ "LEFT BTN ",  1 << RETRO_DEVICE_ID_JOYPAD_A },
	{ "RIGHT BTN",  1 << RETRO_DEVICE_ID_JOYPAD_B },
	{ "ESC      ",  1 << RETRO_DEVICE_ID_JOYPAD_X },
	{ ".        ",  1 << RETRO_DEVICE_ID_JOYPAD_Y },
	{ "MENU     ",  1 << RETRO_DEVICE_ID_JOYPAD_START },
	{ "KEYBOARD ",  1 << RETRO_DEVICE_ID_JOYPAD_SELECT },
	{ "ENTER    ",  1 << RETRO_DEVICE_ID_JOYPAD_L },
	{ "5        ",  1 << RETRO_DEVICE_ID_JOYPAD_R },
	{ "BACKSPACE",  1 << RETRO_DEVICE_ID_JOYPAD_L2 },
	{ "SLOW CUR ",  1 << RETRO_DEVICE_ID_JOYPAD_R2 },
	{ "F10      ",  1 << RETRO_DEVICE_ID_JOYPAD_L3 },
	{ "0        ",  1 << RETRO_DEVICE_ID_JOYPAD_R3 },
	{ NULL,       0 }
};

me_bind_action scummvm_emu_actions[] =
{
	{ "Toggle FPS/CPU%  ", 1 << EACTION_TOGGLE_HUD },
	{ "Toggle FF        ", 1 << EACTION_TOGGLE_FF },
	{ "Take Screenshot  ", 1 << EACTION_SCREENSHOT },
	{ NULL,                0 }
};

#define scummvm_overrides {                           \
	.core_name = "scummvm",                             \
	.actions = scummvm_ctrl_actions,                    \
	.action_size = array_size(scummvm_ctrl_actions),    \
	.emu_actions = scummvm_emu_actions,                 \
	.emu_action_size = array_size(scummvm_emu_actions), \
	.options = scummvm_core_option_overrides,           \
	.needs_reopen = 1                                   \
}