mirror of
https://github.com/lihop/godot-xterm.git
synced 2025-07-05 13:15:32 +02:00
Add scroll support
This commit is contained in:
parent
d59a925ca1
commit
3bed9e7b0f
2 changed files with 29 additions and 0 deletions
|
@ -9,6 +9,7 @@
|
|||
#include <godot_cpp/classes/image_texture.hpp>
|
||||
#include <godot_cpp/classes/input_event_key.hpp>
|
||||
#include <godot_cpp/classes/input_event_mouse.hpp>
|
||||
#include <godot_cpp/classes/input_event_mouse_button.hpp>
|
||||
#include <godot_cpp/classes/rendering_server.hpp>
|
||||
#include <godot_cpp/classes/shader_material.hpp>
|
||||
#include <godot_cpp/classes/timer.hpp>
|
||||
|
@ -154,6 +155,8 @@ namespace godot
|
|||
void initialize_input();
|
||||
void _handle_key_input(Ref<InputEventKey> event);
|
||||
|
||||
void _handle_mouse_wheel(Ref<InputEventMouseButton> event);
|
||||
|
||||
enum SelectionMode { NONE, POINTER };
|
||||
bool selecting = false;
|
||||
SelectionMode selection_mode = SelectionMode::NONE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue