{\r
Uint16 NAxies; //!< Number of Axies\r
Uint16 NButtons; //!< Number of buttons\r
-};\r
+} PACKED;\r
\r
/**\r
* \brief Axis Definition in file data\r
Sint16 MaxValue; //!< Maximum value for \a CurValue\r
Sint16 CurValue; //!< Current value (joystick position)\r
Uint16 CursorPos; //!< Current state (cursor position)\r
-};\r
+} PACKED;\r
\r
#define JOY_INFOSTRUCT(_naxies, _nbuttons) struct { \\r
Uint16 NAxies, NButtons;\\r
// == CODE ==\r
int PS2Mouse_Install(char **Arguments)\r
{\r
+ \r
+\r
// Set up variables\r
- gMouse_Axies = (void*)&gMouse_FileData[1];\r
+ gMouse_Axies = (void*)&gMouse_FileData[4];\r
gMouse_Buttons = (void*)&gMouse_Axies[NUM_AXIES];\r
+\r
+ gMouse_FileHeader->NAxies = 2; gMouse_FileHeader->NButtons = 3;\r
+ gMouse_Axies[0].MinValue = -10; gMouse_Axies[0].MaxValue = 10;\r
+ gMouse_Axies[1].MinValue = -10; gMouse_Axies[1].MaxValue = 10;\r
\r
// Initialise Mouse Controller\r
giMouse_Cycle = 0; // Set Current Cycle position\r
gMouse_Axies[i].CursorPos = newCursor;\r
}\r
\r
+// Log("Mouse at %ix%i", gMouse_Axies[0].CursorPos, gMouse_Axies[1].CursorPos);\r
\r
VFS_MarkAvaliable(&gMouse_DriverStruct.RootNode, 1);\r
}\r