thenumbernine / lua-ffi-bindings

FFI bindings for LuaJIT
MIT License
45 stars 7 forks source link

"repeat" identifier conflicts with Lua keyword #4

Open immortalx74 opened 10 months ago

immortalx74 commented 10 months ago

Hello again! The repeat member of SDL_KeyboardEvent struct, in file sdl.lua conflicts with Lua's repeat keyword. Maybe it can be changed to something like repeat_?

thenumbernine commented 10 months ago

I know it's ugly, but as an immediate fix you can use event['repeat'] to get around it being a Lua keyword.