Skip to content

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

Description

@arbims

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

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions