Update joy.c
Added JOY_writeJoypadX(u16 joy, u16 pos) & JOY_writeJoypadY(u16 joy, u16 pos) which allow to set a specific position for mouse pointer (e.g. start screen when it was 0,0 by default)
@@ -511,6 +511,7 @@ u16 JOY_readJoypad(u16 joy)
return 0;
}
+
s16 JOY_readJoypadX(u16 joy)
{
if (joy < JOY_NUM)
@@ -519,6 +520,14 @@ s16 JOY_readJoypadX(u16 joy)
return 0;
}
+s16 JOY_writeJoypadX(u16 joy, u16 pos)
+{
+ if (joy < JOY_NUM)
+ joyAxisX[joy]=pos;
+
+ return 0;
+}
+
s16 JOY_readJoypadY(u16 joy)
{
if (joy < JOY_NUM)
@@ -527,6 +536,14 @@ s16 JOY_readJoypadY(u16 joy)
return 0;
}
+s16 JOY_writeJoypadY(u16 joy, u16 pos)
+{
+ if (joy < JOY_NUM)
+ joyAxisY[joy]=pos;
+
+ return 0;
+}
+
void JOY_waitPressBtn()
{
