summaryrefslogtreecommitdiffstats
path: root/widget/MouseEvents.h
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-04-21 14:53:24 +0200
committerGitHub <noreply@github.com>2018-04-21 14:53:24 +0200
commit844da4597f92c4d603e8df2c1f5c8b23f31904f0 (patch)
tree3d8fe3c6bec0d7e4538affe5efa6fd3294a72f86 /widget/MouseEvents.h
parentfb37ed0a373a0bbc29bbe6e20ca684e856185c5c (diff)
parent09f456b2808224e7707e51bfab8957ef067154e4 (diff)
downloadUXP-844da4597f92c4d603e8df2c1f5c8b23f31904f0.tar
UXP-844da4597f92c4d603e8df2c1f5c8b23f31904f0.tar.gz
UXP-844da4597f92c4d603e8df2c1f5c8b23f31904f0.tar.lz
UXP-844da4597f92c4d603e8df2c1f5c8b23f31904f0.tar.xz
UXP-844da4597f92c4d603e8df2c1f5c8b23f31904f0.zip
Merge pull request #221 from janekptacijarabaci/js_dom_pointer_events_1
moebius#71: Pointer Events - improvements
Diffstat (limited to 'widget/MouseEvents.h')
-rw-r--r--widget/MouseEvents.h21
1 files changed, 15 insertions, 6 deletions
diff --git a/widget/MouseEvents.h b/widget/MouseEvents.h
index 643132618..442ac41e8 100644
--- a/widget/MouseEvents.h
+++ b/widget/MouseEvents.h
@@ -43,22 +43,31 @@ namespace dom {
class WidgetPointerHelper
{
public:
- bool convertToPointer;
uint32_t pointerId;
uint32_t tiltX;
uint32_t tiltY;
- bool retargetedByPointerCapture;
+ uint32_t twist;
+ float tangentialPressure;
+ bool convertToPointer;
- WidgetPointerHelper() : convertToPointer(true), pointerId(0), tiltX(0), tiltY(0),
- retargetedByPointerCapture(false) {}
+ WidgetPointerHelper()
+ : pointerId(0)
+ , tiltX(0)
+ , tiltY(0)
+ , twist(0)
+ , tangentialPressure(0)
+ , convertToPointer(true)
+ {
+ }
void AssignPointerHelperData(const WidgetPointerHelper& aEvent)
{
- convertToPointer = aEvent.convertToPointer;
pointerId = aEvent.pointerId;
tiltX = aEvent.tiltX;
tiltY = aEvent.tiltY;
- retargetedByPointerCapture = aEvent.retargetedByPointerCapture;
+ twist = aEvent.twist;
+ tangentialPressure = aEvent.tangentialPressure;
+ convertToPointer = aEvent.convertToPointer;
}
};