mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-15 16:05:10 +01:00
0cd2573062
Added used libraries to /branches/libs/ You need to "make" and "make install" both libsicksaxis and libupc to compile USBLoaderGX r1235+
81 lines
3.4 KiB
Diff
81 lines
3.4 KiB
Diff
Index: Makefile
|
|
===================================================================
|
|
--- Makefile (revision 3)
|
|
+++ Makefile (working copy)
|
|
@@ -20,7 +20,9 @@
|
|
SOURCES := source
|
|
DATA := data
|
|
INCLUDES := include
|
|
-
|
|
+INCDIR := $(LIBOGC_INC)/wupc/
|
|
+INCFILE := include/wupc/wupc
|
|
+LIBFILE := lib/$(TARGET)
|
|
#---------------------------------------------------------------------------------
|
|
# options for code generation
|
|
#---------------------------------------------------------------------------------
|
|
@@ -72,7 +74,13 @@
|
|
@echo clean ...
|
|
@rm -fr $(BUILD) $(OUTPUT).a
|
|
|
|
+#---------------------------------------------------------------------------------
|
|
|
|
+install:
|
|
+ @echo Installing ...
|
|
+ @mkdir -p $(INCDIR)
|
|
+ @install -v -m 644 $(LIBFILE).a $(LIBOGC_LIB)
|
|
+ @install -v -m 644 $(INCFILE).h $(INCDIR)
|
|
#---------------------------------------------------------------------------------
|
|
else
|
|
|
|
Index: usage.txt
|
|
===================================================================
|
|
--- usage.txt (revision 3)
|
|
+++ usage.txt (working copy)
|
|
@@ -1,23 +1,23 @@
|
|
-libwupc - A WiiU Pro Controller Library for Wii Homebrew Applications by FIX94
|
|
-WiiU Pro Controller Documentation from TeHaxor69
|
|
-
|
|
-1. Copy the "lib" and "include" folder into your "portlibs" folder
|
|
-
|
|
-2. Make these modifications to your Makefile:
|
|
--add "-lwupc" right behind "-lwiiuse" to your LIBS
|
|
--add ",-wrap,wiiuse_register" to your LDFLAGS
|
|
-
|
|
-3. Modify your code like this:
|
|
--make sure to include <wupc/wupc.h> in all files you use WUPC calls
|
|
--call "WUPC_Init" before "WPAD_Init"
|
|
--call "WUPC_Shutdown" before "WPAD_Shutdown"
|
|
--either use the separate calls or use WUPC_Data at the same place you would normally use the WPAD calls for your data handling
|
|
--if you use ButtonsUp, ButtonsUp and/or ButtonsHeld, make sure to call "WUPC_UpdateButtonStats" before "WPAD_ScanPads",
|
|
-if you dont use any of these you can ignore "WUPC_UpdateButtonStats"
|
|
-
|
|
-Notes:
|
|
--The X and Y-Axis are going from about -1024 to +1024, make sure you adjust your calculations to that
|
|
--The Buttons are using the same layout as the classic controller buttons, use the "WPAD_CLASSIC_BUTTON_" definitions in <wiiuse/wpad.h>
|
|
--The Battery Status goes from 0 (critical) to 4 (full)
|
|
-
|
|
+libwupc - A WiiU Pro Controller Library for Wii Homebrew Applications by FIX94
|
|
+WiiU Pro Controller Documentation from TeHaxor69
|
|
+
|
|
+1. Copy the "lib" and "include" folder into your "portlibs" folder
|
|
+
|
|
+2. Make these modifications to your Makefile:
|
|
+-add "-lwupc" right after "-lwiiuse" to your LIBS
|
|
+-add ",-wrap,wiiuse_register" to your LDFLAGS
|
|
+
|
|
+3. Modify your code like this:
|
|
+-make sure to include <wupc/wupc.h> in all files you use WUPC calls
|
|
+-call "WUPC_Init" before "WPAD_Init"
|
|
+-call "WUPC_Shutdown" before "WPAD_Shutdown"
|
|
+-either use the separate calls or use WUPC_Data at the same place you would normally use the WPAD calls for your data handling
|
|
+-if you use ButtonsUp, ButtonsUp and/or ButtonsHeld, make sure to call "WUPC_UpdateButtonStats" before "WPAD_ScanPads",
|
|
+if you dont use any of these you can ignore "WUPC_UpdateButtonStats"
|
|
+
|
|
+Notes:
|
|
+-The X and Y-Axis are going from about -1024 to +1024, make sure you adjust your calculations to that
|
|
+-The Buttons are using the same layout as the classic controller buttons, use the "WPAD_CLASSIC_BUTTON_" definitions in <wiiuse/wpad.h>
|
|
+-The Battery Status goes from 0 (critical) to 4 (full)
|
|
+
|
|
Have Fun!
|
|
\ No newline at end of file
|