From: Chad A. <ae...@ae...> - 2002-02-11 08:18:06
|
> I'd say it should always return some sane value such as: > > [0..1] (normalized 0 to 1) > [-1..1] (normalized -1 to 1) Yes, definitely. > [0..127] (7bit) > [0..100] (0 - 100%) > [0..255] (8bit) > [0..65530] (16bit) Not so cool. ^^ > I think it would enable robust applications with less code. > > The other possibility would be to have the app set the value... but then > the driver would have to know how to scale to any arbitrary value (not too > hard to do considering it would have to anyway)... > > I'd hate to make the driver very complex, so I'd definately take that into > consideration.. Yeah, I don't really like this idea. In fact, I was just discussing input devices with a longstanding programmer friend (my mentor, if you will) about input devices, and he even implements digital devices as being an analog device that only outputs 0 or 1 (square wave). |