Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
arbims opened this issue Jun 29, 2022 · 1 comment
Open
Assignees
Labels

Comments

@arbims
Copy link

arbims commented Jun 29, 2022

$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;
}

@santiagolizardo santiagolizardo self-assigned this Jul 22, 2022
@santiagolizardo
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants