Add delta value between frames

This commit is contained in:
2022-10-24 06:42:58 -04:00
parent 987ef9502f
commit 9ccd2cf2cb
12 changed files with 32 additions and 23 deletions

View File

@@ -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()