mirror of
https://github.com/yeslayla/golang-game-framework.git
synced 2025-12-06 17:23:25 +01:00
Add delta value between frames
This commit is contained in:
@@ -37,7 +37,7 @@ func (input *SdlInputHandler) IsKeyJustReleased(key uint) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func (input *SdlInputHandler) Update() error {
|
||||
func (input *SdlInputHandler) Update(delta float64) error {
|
||||
copy(input.lastKeyState, input.keyState)
|
||||
input.keyState = sdl.GetKeyboardState()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user