Commit Graph

59 Commits

Author SHA1 Message Date
hathach
969b06d77c minor update 2024-06-14 12:51:50 +07:00
John Toniutti
f09fa22bbc Fix redefinition 2024-05-09 18:45:20 +02:00
John Toniutti
015b57b6ef Add missing key codes
Source: https://www.usb.org/sites/default/files/documents/hut1_12v2.pdf from page 57 to page 59
2024-05-09 17:05:14 +02:00
HiFiPhile
70ae07b084 Merge pull request #2252 from rsolorzanomsft/hid-lighting
Add HID Lighting and Illumination functionality
2024-05-08 15:00:08 +02:00
Ryan Solorzano
3e8cf3ec8c Add HID Lighting and Illumination functionality 2023-09-12 11:32:23 -07:00
tobozo
805ebb3924 remove trailing space (satisfy pre-commit flow) 2023-03-30 22:01:36 +02:00
tobozo
290f18a1fe Merge branch 'hathach:master' into master 2023-03-30 19:30:24 +00:00
hathach
3623ba1884 fix trailing space and new line
temporarily disable codespell
2023-03-17 16:12:49 +07:00
hathach
d58120647a rename to match fido sample uf2_hid..h 2022-12-05 13:18:05 +07:00
gaoyichuan
2a520fb921 hid: add fido hid descriptor templates 2022-10-15 19:07:07 +08:00
tobozo
9e38b4cc68 Merge branch 'hathach:master' into master 2022-04-25 01:43:46 +02:00
hathach
4795cca04a add parse config descriptor to example
move usbh_edpt_open() to public API, remove rhport from its signature
2022-03-19 00:43:31 +07:00
tobozo
9526a0ff73 stick to struct naming convention 2022-03-02 16:56:59 +01:00
tobozo
34ae21319e added Absolute Mouse report struct 2022-03-02 15:00:07 +01:00
hathach
a8d6e82395 enhance dual role examples 2022-02-25 17:36:05 +07:00
hathach
a53e83665e fix HID_REPORT_ID_N() 2022-02-17 12:12:42 +07:00
hathach
2ea0ef4543 correct newline usage keycode (ENTER 0x28) 2021-08-10 16:40:43 +07:00
hathach
cffa666bd1 use alias for button naming 2021-06-09 17:45:14 +07:00
Marcelo Bezerra
a8abbcc34d Change buttons to start from 0 2021-06-09 12:14:04 +02:00
hathach
2c0947ebb6 update gamepad helper 2021-06-09 10:33:57 +07:00
Marcelo Bezerra
d3b6e28387 indent fix 2021-06-09 10:33:57 +07:00
Marcelo Bezerra
de71e72e31 Fix comment in hid.h 2021-06-09 10:33:57 +07:00
Marcelo Bezerra
e12195705c Pull request changes
Remove configuration options and just bump number of buttons to 32
Fix button numbereing and comments in
2021-06-09 10:33:57 +07:00
Marcelo Bezerra
ce634f226e remove excess empty lines 2021-06-09 10:33:57 +07:00
Marcelo Bezerra
3842c806a6 clean up 2021-06-09 10:33:57 +07:00
Marcelo Bezerra
d5f8da44d1 Add optional support for 32 gamepad buttons 2021-06-09 10:33:57 +07:00
hathach
40cd3a7e20 Merge branch 'master' into host-hid 2021-05-18 13:08:30 +07:00
hathach
da6a7fb2bb update hid report descriptor macro 2021-05-18 12:58:24 +07:00
hathach
9ddc3bfd6d more host hid API
adding hid parser
2021-05-18 12:58:24 +07:00
hathach
a26752a93e fix build error 2021-05-18 12:45:59 +07:00
hathach
7e9e682e09 update to use HID spec protocol value for get/set_protocol() 2021-05-18 12:38:11 +07:00
hathach
e163f85ee0 clean up, rename some HID device symbol/API
- add tud_hid_n_interface_protocol()
- rename tud_hid_n_boot_mode() to  tud_hid_n_get_protocol()
- rename tud_hid_boot_mode_cb() to tud_hid_set_protocol_cb()
- add HID_PROTOCOL_BOOT/REPORT to avoid magic number 0,1
- rename HID_PROTOCOL_NONE/KEYBOARD/MOUSE to HID_ITF_PROTOCOL_ to avoid
confusion
2021-05-18 12:32:20 +07:00
hathach
89a911ee43 correct hid key enter = 0x28, return = 0x9E 2021-03-30 21:26:35 +07:00
hathach
d135825e9c add hid keys from 0x6B to 0xA4 2021-03-30 21:12:56 +07:00
hathach
72bcc0685c add tud_hid_n_gamepad_report() helper for gamepad report
- Add gamepad to hid_composite example. Though it needs a bit of extra
work but it will come later as separated PR.
2021-02-08 19:08:16 +07:00
hathach
b2019e4d71 enhance gampepad report with dpad/hat support
add hid_gamepad_report_t along with GAMEPAD_BUTTON_ and GAMEPAD_HAT_
enum
2021-02-08 16:10:13 +07:00
hathach
d57312602d add extra comma to HID_REPORT_ID
this make the template with Report ID look less weird to the user
2020-04-20 16:09:17 +07:00
Nathan Conrad
25c1bea782 Normalize line endings 2020-01-15 14:47:43 -05:00
samveen
ba8a232970 add "`" and "~" to keycode -> ASCII table 2019-12-17 12:47:05 +05:30
samveen
fdce63b268 [tusb]fix typo in comment 2019-12-16 23:01:26 +05:30
hathach
dcfaec9efc add HID_ASCII_TO_KEYCODE 2019-06-06 18:06:24 +07:00
hathach
13e01c7dca add TU_ prefix to compiler ATTR to prevent name conflict with application 2019-06-06 10:39:37 +07:00
hathach
61ec407752 update license year to 2019 2019-05-14 11:48:05 +07:00
hathach
f9d9eebfe1 support hid generic inout #58
- add report descriptor template TUD_HID_REPORT_DESC_GENERIC_INOUT
- add TUD_HID_INOUT_DESCRIPTOR & TUD_HID_INOUT_DESC_LEN
- add hid_generic_inout example
2019-05-02 14:30:49 +07:00
hathach
353d415d3f clean up 2019-05-02 13:27:00 +07:00
hathach
0b6999a28e add tud_hid_set_idle_cb
- rename tud_hid_mode_changed_cb to tud_hid_mode_changed_cb
- add mouse ac pan descriptor template support
2019-05-01 16:53:35 +07:00
hathach
a30461b078 update tud_hid_keyboard/mouse helper 2019-04-18 13:27:06 +07:00
hathach
c211ee19dd migrate license from BSD 3 clause to MIT 2019-03-20 16:11:42 +07:00
hathach
257d60fe1a white spaces 2018-12-21 12:58:53 +07:00
hathach
2a60427bdc rename bit_* helper to tu_bit_*, BIT_* to TU_BIT_* for consistency 2018-12-14 15:30:54 +07:00