php-sdl icon indicating copy to clipboard operation
php-sdl copied to clipboard

SDL_GetKeyboardState Argument #1 ($numkeys) cannot be passed by reference

Open arbims opened this issue 3 years ago • 1 comments

$keyboard = SDL_GetKeyboardState($var = null);

if($keyboard(SDL_SCANCODE_LEFT)) { print('left'); $bar_x += -1; }

if($keyboard(SDL_SCANCODE_RIGHT)) { print('left'); $bar_x += +1; }

arbims avatar Jun 29 '22 07:06 arbims

This should now be resolved. I'll push a 2.7.0 release tonight. Thanks,

santiagolizardo avatar Jul 22 '22 14:07 santiagolizardo