summaryrefslogtreecommitdiff
path: root/lib/ultralib/src/io/contsetch.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ultralib/src/io/contsetch.c')
-rw-r--r--lib/ultralib/src/io/contsetch.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/ultralib/src/io/contsetch.c b/lib/ultralib/src/io/contsetch.c
new file mode 100644
index 0000000..eff63a6
--- /dev/null
+++ b/lib/ultralib/src/io/contsetch.c
@@ -0,0 +1,19 @@
+#include "PR/os_internal.h"
+#include "controller.h"
+#include "siint.h"
+
+s32 osContSetCh(u8 ch) {
+ s32 ret = 0;
+
+ __osSiGetAccess();
+
+ if (ch > MAXCONTROLLERS) {
+ __osMaxControllers = MAXCONTROLLERS;
+ } else {
+ __osMaxControllers = ch;
+ }
+
+ __osContLastCmd = CONT_CMD_END;
+ __osSiRelAccess();
+ return ret;
+} \ No newline at end of file