View Source AFK.Keycode.MFA (afk v0.3.2)
MFA allows you to call arbitrary Elixir code from key presses.
Link to this section Summary
Functions
Creates an MFA
keycode.
Link to this section Types
Link to this section Functions
Creates an MFA
keycode.
examples
Examples
In this example, the keycode will call MyMod.my_func/0
when pressed, and
nothing when released.
iex> new({MyMod, :my_func})
%AFK.Keycode.MFA{pressed_mfa: {MyMod, :my_func}}