Commit Graph

32 Commits

Author SHA1 Message Date
jakllsch e43287544b Improve usbhid(3) descriptor/report parsing:
Handle signed Physical Minimums
 Handle signed Unit Exponents
2010-08-13 19:56:34 +00:00
plunky 38cd0f0b2e note const from actual API 2010-05-12 18:37:56 +00:00
plunky 7a1cb70b5e hid_get_data() will read an extra byte if the data being read ends on
a byte boundary. This byte is subsequently discarded, but it could be
a byte from memory after the end of the report being parsed.

Fix this by rounding up and ending the loop one earlier.
2010-05-12 18:28:20 +00:00
joerg f63b030c15 Use .In instead of .Ar Pa for header files. 2010-03-22 21:58:31 +00:00
jakllsch ec1d44ba55 Fix copy-paste-o. Per the HID spec, Global Item Tag 0b001101nn is
Physical Minimum, not a alias for Physical Maximum.
2010-01-05 17:57:06 +00:00
jakllsch 23f0810103 Add more Keypad usages in the Keyboard/Keypad page
from USB HID Usage Tables document version 1.11.

Admitedly these are not going to be noticed when ukbd(4) is around.

While here, correct a typo (that's also in the HUT document),
and normalize to ASCII a non-UTF-8 encoding of "moire".

"This may prove useful to some of you someday,
 perhaps in a somewhat bizarre set of circumstances."
                                 - Tom Lehrer
2009-07-10 22:11:58 +00:00
plunky 28aef083c5 add generic Device Controls usage page information 2007-05-24 18:05:11 +00:00
plunky a7ea3f4e89 add const to the data for hid_use_report_desc() since it does
not modify the memory.
2007-04-11 20:56:20 +00:00
drochner 5a0b1292cf add __BEGIN_DECLS/__END_DECLS so that this can be used from c++ libs
(there is code out there -plib/flightgear- which tries this)
2007-03-23 21:37:45 +00:00
christos 8444694a42 cast shift argument in macro. 2006-05-19 14:40:15 +00:00
christos ac579202bd fix debug build. 2006-04-09 00:49:55 +00:00
wiz c23b1a74bb Fix sign extension broken by previous. dillo hacked here too. 2005-12-14 17:35:40 +00:00
christos 684eb06cd8 fix non-portable right shifts. 2005-12-05 02:09:17 +00:00
dsl 1793b7dd69 Use (unsigned char) cast to sanitise arguments to ctype functions. 2004-10-28 21:14:52 +00:00
dsl d349cd6749 Fix a load of international alphabet problems with isxxx() and toupper()
Change isspace(*char_ptr) to isspace(*char_ptr & 0xff) so that the correct
piece of memory is looked at for the bit mask.
gcc optimises out the '& 0xff' (on i386 at least).
Fixes problems found by gcc when the splurious (int) cast is removed
from the #defines in ctype.h
2004-10-27 19:59:24 +00:00
uebayasi 0571d32356 Minor fix in SEE ALSO; put xref first; .Pp before a sentence. 2004-06-10 14:01:45 +00:00
lukem 42415f999d Add entries for items found on the Microsoft Wireless MultiMedia Keyboard 1.1.
Spell "Microsoft" correctly.
2004-05-16 13:22:23 +00:00
augustss a6cfb45c19 The report size is not a local item, so don't clear it when clearing local items. 2004-01-05 17:55:48 +00:00
salo 99410184e7 netbsd.org->NetBSD.org 2003-07-26 19:24:24 +00:00
wiz aeeb4fe3d0 Grammar, spelling, markup fixes from jmc@openbsd. 2003-06-06 13:42:49 +00:00
wiz 472351e13d Use
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.
2003-04-16 13:34:34 +00:00
lukem e2d7870626 add RCSID 2003-03-08 07:42:33 +00:00
grant 104b35fe93 'NetBSD.org' and some mdoc fixes. 2003-02-14 16:29:11 +00:00
wiz 57a4de98d0 New sentence, new line. From Robert Elz. 2002-10-01 19:26:58 +00:00
grant 6742cb1812 sweep of errx/warnx, remove unnecessary trailing \n 2002-07-20 08:36:17 +00:00
christos 6728d906e9 Prefix structure members to protect them against clashes with eg. c++ keywords.
Suggested by Alfred Perlstein, from FreeBSD, ok'd by augustss
2002-02-20 20:30:12 +00:00
ross 814f296b77 Generate <>& symbolically. 2002-02-07 07:00:09 +00:00
wiz c0fcdf0b00 Fix typo in URL, reported by Peter Valchev in private mail. 2002-01-19 00:08:17 +00:00
kristerw 4ef8fa290a Corrected typo: hid(4) -> uhid(4) 2002-01-12 22:22:55 +00:00
augustss dbe9bd1ee1 Fix a size calculation bug. 2001-12-29 20:44:22 +00:00
wiz 01647a6cc5 Update for rename from usb to usbhid. 2001-12-28 23:06:02 +00:00
augustss 8ac1932ef2 Update for uhidev(4) changes.
Also rename libusb to libusbhid (which is a much better name).
2001-12-28 17:45:25 +00:00