> Okay, i think you may have mis-understood (or maybe me). I need to code on that > dial somehow and I don't know where to start since the data input style is different > than a key. > > -Lak
Look through the code. The joystick code (IN_ReadJoystick) uses joyGetPosEx (see the MSDN info for details) to read the joystick position. This will be from -32768 to 32767 for the X and Y axis. The IN_JoyMove() function translates this joystick position into pitch angles and sideways movement. Just change the IN_JoyMove() function to take the X axis values and use those for roll and take the Y axis values and use those for pitch (i.e. rip out the code that's in there and replace it with your own). There are 2 #defines near the top of the file that determine whether the joystick works using absolute positions or relative positions... #define JOY_ABSOLUTE_AXIS 0x00000000 // control like a joystick #define JOY_RELATIVE_AXIS 0x00000010 // control like a mouse, spinner, trackball You might want roll to be absolute (the plane keeps rolling more and more when you hold the stick to the left or right) and use relative movement for the pitch (the plane would pitch up or down based on joystick position but wouldn't keep pitching more and more if the stick was held all the way at the top or bottom). Jeffrey "botman" Broome _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders