mirror of
https://github.com/Relintai/ui_extensions.git
synced 2024-11-12 10:25:27 +01:00
Work on fixing compile.
This commit is contained in:
parent
a5d8af46bb
commit
472e7fd7ba
@ -203,7 +203,7 @@ void InputMapEditor::_device_input_add() {
|
||||
case INPUT_MOUSE_BUTTON: {
|
||||
Ref<InputEventMouseButton> mb;
|
||||
#if VERSION_MAJOR < 4
|
||||
mb.instance();
|
||||
mb.instantiate();
|
||||
mb->set_button_index(device_index->get_selected() + 1);
|
||||
#else
|
||||
mb.instantiate();
|
||||
@ -226,7 +226,7 @@ void InputMapEditor::_device_input_add() {
|
||||
case INPUT_JOY_MOTION: {
|
||||
Ref<InputEventJoypadMotion> jm;
|
||||
#if VERSION_MAJOR < 4
|
||||
jm.instance();
|
||||
jm.instantiate();
|
||||
jm->set_axis(device_index->get_selected() >> 1);
|
||||
#else
|
||||
jm.instantiate();
|
||||
@ -251,7 +251,7 @@ void InputMapEditor::_device_input_add() {
|
||||
case INPUT_JOY_BUTTON: {
|
||||
Ref<InputEventJoypadButton> jb;
|
||||
#if VERSION_MAJOR < 4
|
||||
jb.instance();
|
||||
jb.instantiate();
|
||||
jb->set_button_index(device_index->get_selected());
|
||||
#else
|
||||
jb.instantiate();
|
||||
@ -310,7 +310,7 @@ void InputMapEditor::_press_a_key_confirm() {
|
||||
Ref<BSInputEventKey> ie;
|
||||
|
||||
#if VERSION_MAJOR < 4
|
||||
ie.instance();
|
||||
ie.instantiate();
|
||||
ie->set_scancode(last_wait_for_key->get_scancode());
|
||||
ie->set_shift(last_wait_for_key->get_shift());
|
||||
ie->set_alt(last_wait_for_key->get_alt());
|
||||
|
@ -65,7 +65,7 @@ void TouchButton::_input(Ref<InputEvent> p_event) {
|
||||
|
||||
Ref<InputEventMouseButton> ev;
|
||||
#if VERSION_MAJOR < 4
|
||||
ev.instance();
|
||||
ev.instantiate();
|
||||
#else
|
||||
ev.instantiate();
|
||||
#endif
|
||||
@ -89,7 +89,7 @@ void TouchButton::_input(Ref<InputEvent> p_event) {
|
||||
|
||||
if (mm.is_valid() && _is_point_inside(mm->get_position())) {
|
||||
Ref<InputEventMouseMotion> ev;
|
||||
ev.instance();
|
||||
ev.instantiate();
|
||||
|
||||
ev->set_relative(mm->get_relative());
|
||||
ev->set_speed(mm->get_speed());
|
||||
|
Loading…
Reference in New Issue
Block a user