what the fuck git

This commit is contained in:
fgsfds committed 2025-01-05 15:44:14 +01:00
1 parent 5ebce756ed
commit da4e5e4832
4 files changed
+22 -11

No files matched your search

+1
View File
@@ -10,5 +10,6 @@ void conTick(void);
void conPrint(s32 showmsg, const char *s);
void conPrintf(s32 showmsg, const char *fmt, ...);
void conPrintLn(s32 showmsg, const char *s);
s32 conIsOpen(void);
#endif
+8 -1
View File
@@ -192,7 +192,9 @@ void conTick(void)
const s32 button = inputKeyPressed(VK_GRAVE);
if (button && !conButton) {
conOpen = !conOpen;
g_MenuKeyboardPlayer = -1;
if (conOpen) {
inputClearLastTextChar();
inputStartTextInput();
} else {
inputStopTextInput();
@@ -202,7 +204,7 @@ void conTick(void)
conButton = button;
if (conOpen) {
if (inputTextHandler(conInput, CON_COLS, &conInputCol)) {
if (inputTextHandler(conInput, CON_COLS, &conInputCol, false)) {
if (g_NetMode) {
netChat(NULL, conInput);
}
@@ -211,3 +213,8 @@ void conTick(void)
}
}
}
s32 conIsOpen(void)
{
return conOpen;
}
+1 -1
View File
@@ -236,7 +236,7 @@ static MenuItemHandlerResult menuhandlerEnterJoinAddress(s32 operation, struct m
return 0;
}
if (inputTextHandler(g_NetJoinAddr, NET_MAX_ADDR, &g_NetJoinAddrPtr) < 0) {
if (inputTextHandler(g_NetJoinAddr, NET_MAX_ADDR, &g_NetJoinAddrPtr, false) < 0) {
// escape has been pressed, stop editing
inputStopTextInput();
menuPopDialog();
+12 -9
View File
@@ -24,6 +24,7 @@
#include "types.h"
#ifndef PLATFORM_N64
#include "input.h"
#include "console.h"
#define MENU_KEYBOARD_ROWS 6
#else
#define MENU_KEYBOARD_ROWS 5
@@ -1588,15 +1589,17 @@ bool menuitemKeyboardTick(struct menuitem *item, struct menuinputs *inputs, u32
}
} else if (kb->row == 5) {
#ifndef PLATFORM_N64
if (g_MenuKeyboardPlayer == -1) {
g_MenuKeyboardPlayer = g_MpPlayerNum;
inputClearLastTextChar();
inputStartTextInput();
menuPlaySound(MENUSOUND_SELECT);
} else {
g_MenuKeyboardPlayer = -1;
inputStopTextInput();
menuPlaySound(MENUSOUND_KEYBOARDCANCEL);
if (!conIsOpen()) {
if (g_MenuKeyboardPlayer == -1) {
g_MenuKeyboardPlayer = g_MpPlayerNum;
inputClearLastTextChar();
inputStartTextInput();
menuPlaySound(MENUSOUND_SELECT);
} else {
g_MenuKeyboardPlayer = -1;
inputStopTextInput();
menuPlaySound(MENUSOUND_KEYBOARDCANCEL);
}
}
#endif
} else {