mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-25 08:37:30 +09:00
Bug 1299197 Part1: Refine WidgetPointerHelper
native in moebius
This commit is contained in:
parent
a00d55d2f4
commit
d49e470d3d
1 changed files with 10 additions and 4 deletions
|
|
@ -43,21 +43,27 @@ namespace dom {
|
||||||
class WidgetPointerHelper
|
class WidgetPointerHelper
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
bool convertToPointer;
|
|
||||||
uint32_t pointerId;
|
uint32_t pointerId;
|
||||||
uint32_t tiltX;
|
uint32_t tiltX;
|
||||||
uint32_t tiltY;
|
uint32_t tiltY;
|
||||||
|
bool convertToPointer;
|
||||||
bool retargetedByPointerCapture;
|
bool retargetedByPointerCapture;
|
||||||
|
|
||||||
WidgetPointerHelper() : convertToPointer(true), pointerId(0), tiltX(0), tiltY(0),
|
WidgetPointerHelper()
|
||||||
retargetedByPointerCapture(false) {}
|
: pointerId(0)
|
||||||
|
, tiltX(0)
|
||||||
|
, tiltY(0)
|
||||||
|
, convertToPointer(true)
|
||||||
|
, retargetedByPointerCapture(false)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
void AssignPointerHelperData(const WidgetPointerHelper& aEvent)
|
void AssignPointerHelperData(const WidgetPointerHelper& aEvent)
|
||||||
{
|
{
|
||||||
convertToPointer = aEvent.convertToPointer;
|
|
||||||
pointerId = aEvent.pointerId;
|
pointerId = aEvent.pointerId;
|
||||||
tiltX = aEvent.tiltX;
|
tiltX = aEvent.tiltX;
|
||||||
tiltY = aEvent.tiltY;
|
tiltY = aEvent.tiltY;
|
||||||
|
convertToPointer = aEvent.convertToPointer;
|
||||||
retargetedByPointerCapture = aEvent.retargetedByPointerCapture;
|
retargetedByPointerCapture = aEvent.retargetedByPointerCapture;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue