mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 16:28:38 +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
|
||||
{
|
||||
public:
|
||||
bool convertToPointer;
|
||||
uint32_t pointerId;
|
||||
uint32_t tiltX;
|
||||
uint32_t tiltY;
|
||||
bool convertToPointer;
|
||||
bool retargetedByPointerCapture;
|
||||
|
||||
WidgetPointerHelper() : convertToPointer(true), pointerId(0), tiltX(0), tiltY(0),
|
||||
retargetedByPointerCapture(false) {}
|
||||
WidgetPointerHelper()
|
||||
: pointerId(0)
|
||||
, tiltX(0)
|
||||
, tiltY(0)
|
||||
, convertToPointer(true)
|
||||
, retargetedByPointerCapture(false)
|
||||
{
|
||||
}
|
||||
|
||||
void AssignPointerHelperData(const WidgetPointerHelper& aEvent)
|
||||
{
|
||||
convertToPointer = aEvent.convertToPointer;
|
||||
pointerId = aEvent.pointerId;
|
||||
tiltX = aEvent.tiltX;
|
||||
tiltY = aEvent.tiltY;
|
||||
convertToPointer = aEvent.convertToPointer;
|
||||
retargetedByPointerCapture = aEvent.retargetedByPointerCapture;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue