forked from Ports/perfect_dark
Merge branch 'port' into port-net
This commit is contained in:
commit
0d6a5f2d0f
5 files changed
+19
-9
No files matched your search
@@ -86,8 +86,8 @@ enum contkey {
|
||||
CK_STICK_XPOS,
|
||||
CK_STICK_YNEG,
|
||||
CK_STICK_YPOS,
|
||||
CK_0010,
|
||||
CK_0020,
|
||||
CK_ACCEPT,
|
||||
CK_CANCEL,
|
||||
CK_0040,
|
||||
CK_0080,
|
||||
CK_0100,
|
||||
|
||||
+4
-2
@@ -107,8 +107,8 @@ static const char *ckNames[CK_TOTAL_COUNT] = {
|
||||
"STICK_XPOS",
|
||||
"STICK_YNEG",
|
||||
"STICK_YPOS",
|
||||
"CK_0010",
|
||||
"CK_0020",
|
||||
"ACCEPT_BUTTON",
|
||||
"CANCEL_BUTTON",
|
||||
"CK_0040",
|
||||
"CK_0080",
|
||||
"CK_0100",
|
||||
@@ -215,6 +215,8 @@ void inputSetDefaultKeyBinds(s32 cidx, s32 n64mode)
|
||||
{ CK_C_U, SDL_CONTROLLER_BUTTON_DPAD_UP },
|
||||
{ CK_C_R, SDL_CONTROLLER_BUTTON_DPAD_RIGHT },
|
||||
{ CK_C_L, SDL_CONTROLLER_BUTTON_DPAD_LEFT },
|
||||
{ CK_ACCEPT, SDL_CONTROLLER_BUTTON_A },
|
||||
{ CK_CANCEL, SDL_CONTROLLER_BUTTON_B },
|
||||
{ CK_8000, SDL_CONTROLLER_BUTTON_LEFTSTICK },
|
||||
};
|
||||
|
||||
|
||||
@@ -1337,6 +1337,8 @@ static const struct menubind menuBinds[] = {
|
||||
{ CK_8000, "Cycle Crouch [+]\n", "N64 Ext 8000\n" },
|
||||
{ CK_4000, "Half Crouch [+]\n", "N64 Ext 4000\n" },
|
||||
{ CK_2000, "Full Crouch [+]\n", "N64 Ext 2000\n" },
|
||||
{ CK_ACCEPT, "UI Accept [+]\n", "EXT UI Accept\n" },
|
||||
{ CK_CANCEL, "UI Cancel [+]\n", "EXT UI Cancel\n" },
|
||||
};
|
||||
|
||||
static const char *menutextBind(struct menuitem *item);
|
||||
@@ -1374,6 +1376,8 @@ struct menuitem g_ExtendedBindsMenuItems[] = {
|
||||
DEFINE_MENU_BIND(),
|
||||
DEFINE_MENU_BIND(),
|
||||
DEFINE_MENU_BIND(),
|
||||
DEFINE_MENU_BIND(),
|
||||
DEFINE_MENU_BIND(),
|
||||
{
|
||||
MENUITEMTYPE_SEPARATOR,
|
||||
0,
|
||||
|
||||
+3
-5
@@ -4739,14 +4739,12 @@ void menuProcessInput(void)
|
||||
}
|
||||
|
||||
#ifndef PLATFORM_N64
|
||||
// this seems sensible to achieve 1964 parity
|
||||
if (buttonsnow & BUTTON_RADIAL) {
|
||||
// separate buttons for UI accept/cancel
|
||||
if (buttonsnow & BUTTON_UI_ACCEPT) {
|
||||
inputs.select = 1;
|
||||
}
|
||||
|
||||
// HACK: don't back out on weapon back when it's bound to wheel
|
||||
const bool wheel = inputKeyPressed(VK_MOUSE_WHEEL_UP) || inputKeyPressed(VK_MOUSE_WHEEL_DN);
|
||||
if ((buttonsnow & BUTTON_WPNBACK) && !wheel) {
|
||||
if (buttonsnow & BUTTON_UI_CANCEL) {
|
||||
inputs.back = 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -4732,6 +4732,9 @@ enum weaponnum {
|
||||
#define BUTTON_ACCEPT BUTTON_ACCEPT_WPNFORWARD
|
||||
#define BUTTON_WPNFORWARD BUTTON_ACCEPT_WPNFORWARD
|
||||
|
||||
#define BUTTON_UI_ACCEPT BUTTON_ACCEPT_WPNFORWARD
|
||||
#define BUTTON_UI_CANCEL BUTTON_CANCEL_USE
|
||||
|
||||
#define LOCALPLAYERCOUNT() PLAYERCOUNT()
|
||||
|
||||
#else
|
||||
@@ -4753,6 +4756,9 @@ enum weaponnum {
|
||||
#define BUTTON_HALF_CROUCH CONT_4000
|
||||
#define BUTTON_FULL_CROUCH CONT_2000
|
||||
|
||||
#define BUTTON_UI_ACCEPT CONT_0010
|
||||
#define BUTTON_UI_CANCEL CONT_0020
|
||||
|
||||
#define MOUSEAIM_CLASSIC 0 // crosshair moves around the screen in aim mode
|
||||
#define MOUSEAIM_LOCKED 1 // crosshair locked to the center of the screen in aim mode
|
||||
|
||||
|
||||
Reference in new issue
Block a user