|
@@ -715,6 +715,8 @@ static void _call_##m_type##_##m_method(Variant& r_ret,Variant& p_self,const Var
|
|
|
|
|
|
VCALL_PTR0R( InputEvent, is_pressed );
|
|
|
VCALL_PTR1R( InputEvent, is_action );
|
|
|
+ VCALL_PTR1R( InputEvent, is_action_pressed );
|
|
|
+ VCALL_PTR1R( InputEvent, is_action_released );
|
|
|
VCALL_PTR0R( InputEvent, is_echo );
|
|
|
VCALL_PTR2( InputEvent, set_as_action );
|
|
|
|
|
@@ -1540,6 +1542,8 @@ _VariantCall::addfunc(Variant::m_vtype,Variant::m_ret,_SCS(#m_method),VCALL(m_cl
|
|
|
|
|
|
ADDFUNC0(INPUT_EVENT,BOOL,InputEvent,is_pressed,varray());
|
|
|
ADDFUNC1(INPUT_EVENT,BOOL,InputEvent,is_action,STRING,"action",varray());
|
|
|
+ ADDFUNC1(INPUT_EVENT,BOOL,InputEvent,is_action_pressed,STRING,"is_action_pressed",varray());
|
|
|
+ ADDFUNC1(INPUT_EVENT,BOOL,InputEvent,is_action_released,STRING,"is_action_released",varray());
|
|
|
ADDFUNC0(INPUT_EVENT,BOOL,InputEvent,is_echo,varray());
|
|
|
ADDFUNC2(INPUT_EVENT,NIL,InputEvent,set_as_action,STRING,"action",BOOL,"pressed",varray());
|
|
|
|