From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <49C3918C.6040700@proweb.co.uk> Date: Fri, 20 Mar 2009 12:52:28 +0000 From: maht User-Agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103) MIME-Version: 1.0 To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> References: <2470057889c7c25d3cf6c0284b3bcc73@quanstro.net> In-Reply-To: <2470057889c7c25d3cf6c0284b3bcc73@quanstro.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [9fans] Raw Input Driver Topicbox-Message-UUID: c08bfb1c-ead4-11e9-9d60-3106f5b1d025 >> or perhaps more to the point the >> 'w' for wheel and 'p' for pedals? you'll never finish. >> My steering wheel combines 15 digital inputs (buttons) 3 analogue inputs (2 pedals and the wheel itself). My joystick has 3 analogues (2 axes of the stick + a throttle lever) If one presumes that an int in the proposed InputEvent struct is enough resolution for such things instead of a float, then one could just use a for the type, distinguish between devices with code and the value in value. This is pretty much how Windows does it. You have an input mapper for your device and map which bit is which for DirectX. You can steer with the pedals and control throttle with your wheel - which is fun, I can tell you.