mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
pico hid refactoring
This commit is contained in:
parent
69163ccfb1
commit
f9ab76b247
@ -20,6 +20,8 @@
|
||||
# ========================================================================= */
|
||||
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "ph_types.h"
|
||||
|
||||
|
||||
|
||||
@ -20,6 +20,8 @@
|
||||
*****************************************************************************/
|
||||
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "ph_types.h"
|
||||
|
||||
|
||||
|
||||
@ -26,9 +26,9 @@
|
||||
#include "ph_outputs.h"
|
||||
|
||||
|
||||
u8 ph_g_ps2_kbd_leds;
|
||||
bool ph_g_ps2_kbd_online;
|
||||
bool ph_g_ps2_mouse_online;
|
||||
u8 ph_g_ps2_kbd_leds = 0;
|
||||
bool ph_g_ps2_kbd_online = 0;
|
||||
bool ph_g_ps2_mouse_online = 0;
|
||||
|
||||
|
||||
void ph_ps2_init(void) {
|
||||
|
||||
@ -25,7 +25,7 @@
|
||||
#include "ph_types.h"
|
||||
|
||||
|
||||
u8 ph_usb_keymap(u8 key) {
|
||||
inline u8 ph_usb_keymap(u8 key) {
|
||||
switch (key) {
|
||||
case 1: return 4; // KeyA
|
||||
case 2: return 5; // KeyB
|
||||
|
||||
@ -25,7 +25,7 @@
|
||||
#include "ph_types.h"
|
||||
|
||||
<%! import operator %>
|
||||
u8 ph_usb_keymap(u8 key) {
|
||||
inline u8 ph_usb_keymap(u8 key) {
|
||||
switch (key) {
|
||||
% for km in sorted(keymap, key=operator.attrgetter("mcu_code")):
|
||||
% if km.usb_key.is_modifier:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user