main
Last change
on this file since e545350 was 87ab18e, checked in by Adrien Destugues <pulkomandy@…>, 10 years ago |
Drop hacked "shift" handling from libps2.
- It's up to clients to do that if they wish so (useful if you're converting
to ASCII, for example, but not for a regular keyboard adapter)
Improve callback system to handle release events.
- The callback would only be called for pressed keys, not for releases, leading
to weird results. Things work much better now in XTK.
- Also ignore the E0 byte for extended keys in XTK. This avoids apps going
crazy as the Turbo XT BIOS doesn't handle it right.
git-svn-id: svn://pulkomandy.tk/avrstuff@114 c6672c3c-f6b6-47f9-9001-1fd6b12fecbe
|
-
Property mode
set to
100644
|
File size:
302 bytes
|
Rev | Line | |
---|
[b82c7b3] | 1 | #include <inttypes.h>
|
---|
| 2 |
|
---|
| 3 |
|
---|
[239ae4e] | 4 | void init_keyboard();
|
---|
[b82c7b3] | 5 | // Call this to set up the I/O pins
|
---|
| 6 | uint8_t read_char();
|
---|
| 7 | // Wait for a char to come from the keyboard
|
---|
| 8 | char render_scan_code(uint8_t);
|
---|
| 9 | // Convert a keycode to a printable ASCII char
|
---|
[239ae4e] | 10 |
|
---|
[87ab18e] | 11 | extern volatile uint8_t kbd_data;
|
---|
[239ae4e] | 12 | extern uint8_t release;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.