[ruamoko] Update function names for IMP button/axis listeners

The function attribute fix made it necessary.
This commit is contained in:
Bill Currie 2025-02-18 14:33:56 +09:00
parent 02bf7dbc03
commit 0df9a1e1e7

View file

@ -563,13 +563,13 @@ static builtin_t builtins[] = {
rua_IN_AxisAddListener_func, -1, 3, {p(ptr), p(func), p(ptr)}},
{"IN_AxisRemoveListener|^{tag in_axis_s=}^(v^v^{tag in_axis_s=})^v",
rua_IN_AxisRemoveListener_func, -1, 3, {p(ptr), p(func), p(ptr)}},
{"IN_ButtonAddListener|^{tag in_button_s=}^(@@:.)@",
{"IN_ButtonAddListener|^{tag in_button_s=}^%(@@:.)@",
rua_IN_ButtonAddListener_method, -1, 3, {p(ptr), p(func), p(ptr)}},
{"IN_ButtonRemoveListener|^{tag in_button_s=}^(@@:.)@",
{"IN_ButtonRemoveListener|^{tag in_button_s=}^%(@@:.)@",
rua_IN_ButtonRemoveListener_method, -1, 3, {p(ptr), p(func), p(ptr)}},
{"IN_AxisAddListener|^{tag in_axis_s=}^(@@:.)@",
{"IN_AxisAddListener|^{tag in_axis_s=}^%(@@:.)@",
rua_IN_AxisAddListener_method, -1, 3, {p(ptr), p(func), p(ptr)}},
{"IN_AxisRemoveListener|^{tag in_axis_s=}^(@@:.)@",
{"IN_AxisRemoveListener|^{tag in_axis_s=}^%(@@:.)@",
rua_IN_AxisRemoveListener_method, -1, 3, {p(ptr), p(func), p(ptr)}},
bi(IMT_CreateContext, 1, p(string)),