2011-01-28 15:44:05 +00:00
|
|
|
#ifndef KEYBOARD_H
|
|
|
|
#define KEYBOARD_H
|
|
|
|
|
2011-02-03 04:26:44 +00:00
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include "host.h"
|
2011-01-28 15:44:05 +00:00
|
|
|
|
|
|
|
|
2011-02-07 05:59:07 +00:00
|
|
|
void keyboard_set_led(uint8_t led);
|
2011-02-03 04:26:44 +00:00
|
|
|
void keyboard_send(void);
|
|
|
|
bool keyboard_has_key(void);
|
|
|
|
void keyboard_add_mod(uint8_t mod);
|
|
|
|
void keyboard_add_key(uint8_t key);
|
|
|
|
void keyboard_add_code(uint8_t code);
|
|
|
|
void keyboard_swap_report(void);
|
|
|
|
void keyboard_clear_report(void);
|
|
|
|
report_keyboard_t *keyboard_report(void);
|
|
|
|
report_keyboard_t *keyboard_report_prev(void);
|
2011-01-28 15:44:05 +00:00
|
|
|
|
2011-02-03 04:26:44 +00:00
|
|
|
#endif
|
2011-01-28 15:44:05 +00:00
|
|
|
|
|
|
|
|