1
0
Fork 0

Add USB to USB converter. unmature.

This commit is contained in:
tmk 2012-08-27 15:18:01 +09:00
parent c5060ea819
commit e7c030375a
9 changed files with 699 additions and 2 deletions

View file

@ -78,6 +78,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
# define REPORT_KEYS 6
#endif
#ifdef __cplusplus
extern "C" {
#endif
typedef struct {
uint8_t mods;
uint8_t rserved;
@ -92,4 +97,8 @@ typedef struct {
int8_t h;
} __attribute__ ((packed)) report_mouse_t;
#ifdef __cplusplus
}
#endif
#endif

View file

@ -24,6 +24,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define IS_ERROR(code) (KB_ROLL_OVER <= (code) && (code) <= KB_UNDEFINED)
#define IS_ANY(code) (KB_A <= (code))
#define IS_KEY(code) (KB_A <= (code) && (code) <= KB_EXSEL)
#define IS_MOD(code) (KB_LCTRL <= (code) && (code) <= KB_RGUI)
#define IS_FN(code) (KB_FN0 <= (code) && (code) <= KB_FN7)