Skip to content

Setting callback function for joystick #2

@simonbyrne

Description

@simonbyrne

Currently, the recommended way to define a callback is via:

@schedule for e in sticktask()
    foo(e)
end
  1. Should we define a function to make this easier? e.g. setcallback(foo).
  2. If so, how should it behave when invoked multiple times? We could keep a global array of functions, but I worry about the performance overhead.

cc: @aviks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions