Home
last modified time | relevance | path

Searched refs:scancode (Results 1 – 2 of 2) sorted by relevance

/DragonOS-0.1.7/kernel/src/libs/
Dkeyboard_parser.rs46 pub fn parse(&mut self, scancode: u8) -> TypeOneFSMState { in parse()
49 .parse(scancode, &mut self.status, &self.tty); in parse()
74 scancode: u8, in parse()
81 return self.handle_start(scancode, scancode_status, tty); in parse()
87 return self.handle_func0(scancode, scancode_status, tty); in parse()
90 return self.handle_type3(scancode, scancode_status, tty); in parse()
104 scancode: u8, in handle_start()
109 match scancode { in handle_start()
118 return TypeOneFSMState::Type3.handle_type3(scancode, scancode_status, tty); in handle_start()
126 scancode: u8, in handle_pause_break()
[all …]
/DragonOS-0.1.7/user/libs/libKeyboard/
Dkeyboard.c300 unsigned char scancode = (unsigned char)c; in keyboard_analyze_keycode() local
303 if (scancode == 0xE1) // Pause Break in keyboard_analyze_keycode()
314 else if (scancode == 0xE0) // 功能键, 有多个扫描码 in keyboard_analyze_keycode()
317 scancode = keyboard_get_scancode(fd); in keyboard_analyze_keycode()
318 switch (scancode) in keyboard_analyze_keycode()
485 flag_make = ((scancode & FLAG_BREAK) ? 0 : 1); in keyboard_analyze_keycode()
488 uint32_t *key_row = &keycode_map_normal[(scancode & 0x7f) * MAP_COLS]; in keyboard_analyze_keycode()
495 switch (scancode & 0x7f) in keyboard_analyze_keycode()