aboutsummaryrefslogtreecommitdiff
path: root/overrides/tyrquake.h
blob: d7c88ce21b1d59d648a999df1bb481f47550f5b6 (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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#include "overrides.h"

static const struct core_override_option tyrquake_core_option_overrides[] = {
	{
		.key = "tyrquake_resolution",
		.blocked = true,
	},
	{
		.key = "tyrquake_colored_lighting",
		.desc = "Colored Lighting",
	},
	{
		.key = "tyrquake_rumble",
		.blocked = true,
	},
	{
		.key = "tyrquake_invert_y_axis",
		.blocked = true,
	},
	{
		.key = "tyrquake_analog_deadzone",
		.blocked = true,
	},
	{ NULL }
};

#ifdef FUNKEY_S
/* DrUm78 build */
me_bind_action tyrquake_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 },
	{ "LOOK     ",  1 << RETRO_DEVICE_ID_JOYPAD_A },
	{ "JUMP     ",  1 << RETRO_DEVICE_ID_JOYPAD_B },
	{ "FIRE     ",  1 << RETRO_DEVICE_ID_JOYPAD_X },
	{ "STRAFE   ",  1 << RETRO_DEVICE_ID_JOYPAD_Y },
	{ "MENU     ",  1 << RETRO_DEVICE_ID_JOYPAD_START },
	{ "PREV WPN ",  1 << RETRO_DEVICE_ID_JOYPAD_L },
	{ "NEXT WPN ",  1 << RETRO_DEVICE_ID_JOYPAD_R },
	{ "LOOK UP  ",  1 << RETRO_DEVICE_ID_JOYPAD_L2 },
	{ "LOOK DOWN",  1 << RETRO_DEVICE_ID_JOYPAD_R2 },
	{ "MOVE DOWN",  1 << RETRO_DEVICE_ID_JOYPAD_L3 },
	{ "SWIM UP  ",  1 << RETRO_DEVICE_ID_JOYPAD_R3 },
	{ NULL,       0 }
};

#else
me_bind_action tyrquake_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 },
	{ "CHG WPN  ",  1 << RETRO_DEVICE_ID_JOYPAD_A },
	{ "JUMP     ",  1 << RETRO_DEVICE_ID_JOYPAD_B },
	{ "LOOK     ",  1 << RETRO_DEVICE_ID_JOYPAD_X },
	{ "FIRE     ",  1 << RETRO_DEVICE_ID_JOYPAD_Y },
	{ "MENU     ",  1 << RETRO_DEVICE_ID_JOYPAD_START },
	{ "TGL RUN  ",  1 << RETRO_DEVICE_ID_JOYPAD_SELECT },
	{ "STRAFE L ",  1 << RETRO_DEVICE_ID_JOYPAD_L },
	{ "STRAFE R ",  1 << RETRO_DEVICE_ID_JOYPAD_R },
	{ "LOOK UP  ",  1 << RETRO_DEVICE_ID_JOYPAD_L2 },
	{ "LOOK DOWN",  1 << RETRO_DEVICE_ID_JOYPAD_R2 },
	{ "MOVE DOWN",  1 << RETRO_DEVICE_ID_JOYPAD_L3 },
	{ "SWIM UP  ",  1 << RETRO_DEVICE_ID_JOYPAD_R3 },
	{ NULL,       0 }
};

#endif

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

#define tyrquake_overrides {                           \
	.core_name = "tyrquake",                             \
	.actions = tyrquake_ctrl_actions,                    \
	.action_size = array_size(tyrquake_ctrl_actions),    \
	.emu_actions = tyrquake_emu_actions,                 \
	.emu_action_size = array_size(tyrquake_emu_actions), \
	.options = tyrquake_core_option_overrides,           \
	.needs_reopen = 1                                    \
}