Skip to content

[microscript] keyboard.press not updated unless update is defined #229

Open
@FEZfan

Description

@FEZfan

keyboard.press (but not keyboard) will be unresponsive to input unless update is defined (as anything)

will not work:

draw = function()
  if keyboard.press.SPACE then
    print('spacebar was pressed')
  end
end

will work:

update = 0

draw = function()
  if keyboard.press.SPACE then
    print('spacebar was pressed')
  end
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions