Thu 17 Oct 23:42:52 CEST 2024
This commit is contained in:
		
							parent
							
								
									438450a0be
								
							
						
					
					
						commit
						842c080803
					
				
							
								
								
									
										23
									
								
								include/kernel/events.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								include/kernel/events.h
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,23 @@ | |||
| #ifndef EVENTS_H | ||||
| #define EVENTS_H | ||||
| 
 | ||||
| #include <kernel/types.h> | ||||
| 
 | ||||
| struct event { | ||||
| 	uint16_t type; | ||||
| 	uint16_t code; | ||||
| 	int16_t  x; | ||||
| 	int16_t  y; | ||||
| }; | ||||
| 
 | ||||
| #define EVENT_CLOSE          (1<<0) | ||||
| #define EVENT_MOUSE_MOVE     (1<<1) | ||||
| #define EVENT_BUTTON_UP      (1<<2) | ||||
| #define EVENT_BUTTON_DOWN    (1<<3) | ||||
| #define EVENT_KEY_UP         (1<<4) | ||||
| #define EVENT_KEY_DOWN       (1<<5) | ||||
| #define EVENT_RESIZE         (1<<6) | ||||
| #define EVENT_REVEAL         (1<<7) | ||||
| #define EVENT_HIDE           (1<<8) | ||||
| 
 | ||||
| #endif | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user