forked from Bananymous/banan-os
				
			LibInput: Correctly resize keyboard layout maps 0xFF->0x100
This commit is contained in:
		
							parent
							
								
									4d080b30ab
								
							
						
					
					
						commit
						fb09aa4d06
					
				|  | @ -106,7 +106,7 @@ namespace LibInput | ||||||
| 				return {}; | 				return {}; | ||||||
| 			keycode = (keycode * 10) + (c - '0'); | 			keycode = (keycode * 10) + (c - '0'); | ||||||
| 		} | 		} | ||||||
| 		if (keycode >= 0xFF) | 		if (keycode > 0xFF) | ||||||
| 			return {}; | 			return {}; | ||||||
| 		return keycode; | 		return keycode; | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
|  | @ -21,9 +21,9 @@ namespace LibInput | ||||||
| 		KeyboardLayout(); | 		KeyboardLayout(); | ||||||
| 
 | 
 | ||||||
| 	private: | 	private: | ||||||
| 		BAN::Array<Key, 0xFF> m_keycode_to_key_normal; | 		BAN::Array<Key, 0x100> m_keycode_to_key_normal; | ||||||
| 		BAN::Array<Key, 0xFF> m_keycode_to_key_shift; | 		BAN::Array<Key, 0x100> m_keycode_to_key_shift; | ||||||
| 		BAN::Array<Key, 0xFF> m_keycode_to_key_altgr; | 		BAN::Array<Key, 0x100> m_keycode_to_key_altgr; | ||||||
| 		friend class BAN::UniqPtr<KeyboardLayout>; | 		friend class BAN::UniqPtr<KeyboardLayout>; | ||||||
| 	}; | 	}; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue