Skip to content

Commit 62f0f6a

Browse files
committed
Fixed DPAD not displaying button presses on default skin
1 parent 9b613d8 commit 62f0f6a

File tree

5 files changed

+7
-25
lines changed

5 files changed

+7
-25
lines changed

source/main.lua

-18
Original file line numberDiff line numberDiff line change
@@ -52,24 +52,6 @@ local PORT_TEXTURES = {
5252
[4] = newImage("textures/player4_color.png")
5353
}
5454

55-
local BUTTONS = {
56-
Z = 0x0010,
57-
R = 0x0020,
58-
L = 0x0040,
59-
A = 0x0100,
60-
B = 0x0200,
61-
X = 0x0400,
62-
Y = 0x0800,
63-
START = 0x1000,
64-
}
65-
66-
local DPAD = {
67-
LEFT = 0x0001,
68-
RIGHT = 0x0002,
69-
DOWN = 0x0004,
70-
UP = 0x0008,
71-
}
72-
7355
local portless_title = ""
7456
function love.updateTitle(str)
7557
local title = str

source/modules/memory/osx.lua

+3-3
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ typedef struct proc_bsdshortinfo {
8282
uint32_t pbsi_pid; /* process id */
8383
uint32_t pbsi_ppid; /* process parent id */
8484
uint32_t pbsi_pgid; /* process perp id */
85-
uint32_t pbsi_status; /* p_stat value, SZOMB, SRUN, etc */
86-
char pbsi_comm[MAXCOMLEN]; /* upto 16 characters of process name */
87-
uint32_t pbsi_flags; /* 64bit; emulated etc */
85+
uint32_t pbsi_status; /* p_stat value, SZOMB, SRUN, etc */
86+
char pbsi_comm[MAXCOMLEN]; /* upto 16 characters of process name */
87+
uint32_t pbsi_flags; /* 64bit; emulated etc */
8888
uid_t pbsi_uid; /* current uid on process */
8989
gid_t pbsi_gid; /* current gid on process */
9090
uid_t pbsi_ruid; /* current ruid on process */

source/overlay/env.lua

+4-4
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ local env = {
4141
},
4242

4343
DPAD = {
44-
LEFT = 0x0001,
45-
RIGHT = 0x0002,
46-
DOWN = 0x0004,
47-
UP = 0x0008,
44+
DPAD_LEFT = 0x0001,
45+
DPAD_RIGHT = 0x0002,
46+
DPAD_DOWN = 0x0004,
47+
DPAD_UP = 0x0008,
4848
},
4949

5050
overlay = overlay,
6.38 KB
Loading
829 Bytes
Loading

0 commit comments

Comments
 (0)