From: Johann D. <jo...@Do...> - 2002-01-16 19:17:00
|
On Wed, 16 Jan 2002, Bj|rn Augustsson wrote: > > How far have you got ? Have you managed to make your joystick move yet ? > > Please also have a look at the input/event API. It would be nice if it was > > the one used to download effects to the device. > > No, I haven't, but I'm close. (I think!) Great ! > > OK, longish status update time: > > [...] > > There's a few policy type things to consider. There's an Usage called > PhysicalInterfaceDevice.Safety_Switch, which is a switch that notices if > you hold the joystick or not (and if you let go, it turns the forces > off). Since the existing HID-input "parser" reports every one-bit input > usage as a button, this gets reported that way (except it's inverted, if > you let go of the stick, it goes 0 -> 1). > > It's not really a button, but it could be useful to a game anyway. You > could bind pause to it for example, or something. Do I report it to the > API as a button, or do I add a new bit about this somewhere? I guess by the name BTN_DEAD (0x12f) could be used for that, but as I said, that's only a guess. -- Johann Deneux |