mirror of
				https://github.com/yeslayla/golang-game-framework.git
				synced 2025-11-04 08:43:06 +01:00 
			
		
		
		
	Simple keyboard input & pause system
This commit is contained in:
		
							
								
								
									
										8
									
								
								input/input_handler.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								input/input_handler.go
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,8 @@
 | 
			
		||||
package input
 | 
			
		||||
 | 
			
		||||
type InputHandler interface {
 | 
			
		||||
	IsKeyDown(uint) bool
 | 
			
		||||
	IsKeyJustPressed(uint) bool
 | 
			
		||||
	IsKeyJustReleased(uint) bool
 | 
			
		||||
	Update() error
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user