Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion ee/rpc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ SUBDIRS += memorycard
SUBDIRS += mouse
SUBDIRS += multitap
SUBDIRS += pad
SUBDIRS += padx
SUBDIRS += poweroff
SUBDIRS += ps2snd
SUBDIRS += remote
Expand Down
2 changes: 2 additions & 0 deletions ee/rpc/pad/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
# Licenced under Academic Free License version 2.0
# Review ps2sdk README & LICENSE files for further details.

EE_LIB_ALTNAMES ?= libpadx.a

EE_OBJS = libpad.o erl-support.o

include $(PS2SDKSRC)/Defs.make
Expand Down
6 changes: 3 additions & 3 deletions ee/rpc/pad/include/libpad.h
Original file line number Diff line number Diff line change
Expand Up @@ -240,20 +240,20 @@ extern int padSetButtonInfo(int port, int slot, int buttonInfo);
* If padInfoAct(port, slot, -1, 0) != 0, the controller has actuators
* (i think ;) )
*/
extern unsigned char padInfoAct(int port, int slot, int word, int byte);
extern unsigned char padInfoAct(int port, int slot, int actuator, int cmd);

/** Initalise actuators. On dual shock controller:
* act_align[0] = 0 enables 'small' engine
* act_align[1] = 1 enables 'big' engine
* set act_align[2-5] to 0xff (disable)
*/
extern int padSetActAlign(int port, int slot, const char act_align[6]);
extern int padSetActAlign(int port, int slot, const char actAlign[6]);

/** Set actuator status on dual shock controller,
* act_align[0] = 0/1 turns off/on 'small' engine
* act_align[1] = 0-255 sets 'big' engine speed
*/
extern int padSetActDirect(int port, int slot, char act_align[6]);
extern int padSetActDirect(int port, int slot, const char actAlign[6]);

/** Returns whether the device at port,slot is connected (1 = connected)
* Appears to have been removed very early during the PS2's lifetime.
Expand Down
6 changes: 3 additions & 3 deletions ee/rpc/pad/samples/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
# ____| | ____| | | |____|
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
#-----------------------------------------------------------------------
# Copyright 2001-2004, ps2dev - http://www.ps2dev.org
# Copyright ps2dev - http://www.ps2dev.org
# Licenced under Academic Free License version 2.0
# Review ps2sdk README & LICENSE files for further details.

SAMPLE_DIR = rpc/pad
SUBDIRS = pad padx

include $(PS2SDKSRC)/Defs.make
include $(PS2SDKSRC)/samples/Rules.samples
include $(PS2SDKSRC)/Rules.make
8 changes: 3 additions & 5 deletions ee/rpc/padx/Makefile → ee/rpc/pad/samples/pad/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
# Licenced under Academic Free License version 2.0
# Review ps2sdk README & LICENSE files for further details.

EE_SRC_DIR = $(PS2SDKSRC)/ee/rpc/pad/src/
EE_INC_DIR = $(PS2SDKSRC)/ee/rpc/pad/include/
SAMPLE_DIR = rpc/pad

EE_CFLAGS += -D_XPAD

include $(PS2SDKSRC)/ee/rpc/pad/Makefile
include $(PS2SDKSRC)/Defs.make
include $(PS2SDKSRC)/samples/Rules.samples
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading