Implemented scrolling factor for smooth trackpad scrolling
Working platforms platform: OSX, Windows. Support for almost all ui elements, including project list.
This commit is contained in:
parent
c8aea60324
commit
304a1f5b5a
15 changed files with 118 additions and 71 deletions
|
|
@ -188,6 +188,7 @@ struct InputEventMouse {
|
|||
|
||||
struct InputEventMouseButton : public InputEventMouse {
|
||||
|
||||
double factor;
|
||||
int button_index;
|
||||
bool pressed; //otherwise released
|
||||
bool doubleclick; //last even less than doubleclick time
|
||||
|
|
@ -272,7 +273,10 @@ struct InputEvent {
|
|||
InputEvent xform_by(const Transform2D &p_xform) const;
|
||||
bool operator==(const InputEvent &p_event) const;
|
||||
operator String() const;
|
||||
InputEvent() { zeromem(this, sizeof(InputEvent)); }
|
||||
InputEvent() {
|
||||
zeromem(this, sizeof(InputEvent));
|
||||
mouse_button.factor = 1;
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue