mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 08:12:43 +00:00 
			
		
		
		
	 c8f27d7cb8
			
		
	
	
		c8f27d7cb8
		
	
	
	
	
		
			
			This scan code set is more advanced than the basic scan code set 1, and is required to be supported for some bare metal hardware that might not properly enable the PS2 first port translation in the i8042 controller. LibWeb can now also generate bindings for keyboard events like the Pause key, as well as other function keys (such as Right Alt, etc). The logic for handling scan code sets is implemented by the PS2 keyboard driver and is abstracted from the main HID KeyboardDevice code which only handles "standard" KeyEvent(s).
		
			
				
	
	
		
			20 lines
		
	
	
	
		
			355 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
	
		
			355 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2023, Liav A. <liavalb@hotmail.co.il>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <AK/Types.h>
 | |
| #include <Kernel/Devices/HID/Definitions.h>
 | |
| 
 | |
| namespace Kernel {
 | |
| 
 | |
| struct ScanCodeEvent {
 | |
|     Array<u8, 8> scan_code_bytes;
 | |
|     ScanCodeSet sent_scan_code_set { ScanCodeSet::Set1 };
 | |
|     u8 bytes_count { 0 };
 | |
| };
 | |
| 
 | |
| }
 |