|
@@ -683,6 +683,7 @@ void la_SaveEvent(Window hwnd, laEvent *e, int use_last_pos){
|
|
e->Pressure=MAIN.IsPen?(MAIN.PointerIsEraser?MAIN.EraserPressure:MAIN.StylusPressure):0.5f;
|
|
e->Pressure=MAIN.IsPen?(MAIN.PointerIsEraser?MAIN.EraserPressure:MAIN.StylusPressure):0.5f;
|
|
e->AngleX=MAIN.PointerIsEraser?MAIN.EraserAngleX:MAIN.StylusAngleX;
|
|
e->AngleX=MAIN.PointerIsEraser?MAIN.EraserAngleX:MAIN.StylusAngleX;
|
|
e->AngleY=MAIN.PointerIsEraser?MAIN.EraserAngleY:MAIN.StylusAngleY;
|
|
e->AngleY=MAIN.PointerIsEraser?MAIN.EraserAngleY:MAIN.StylusAngleY;
|
|
|
|
+ e->IsEraser=MAIN.PointerIsEraser;
|
|
|
|
|
|
lstAppendItem(el, (laListItem *)e);
|
|
lstAppendItem(el, (laListItem *)e);
|
|
laMappingRequestEval();
|
|
laMappingRequestEval();
|
|
@@ -6047,7 +6048,6 @@ static void la_RecordWacomMotions(XIRawEvent *event)
|
|
double *valuator = event->valuators.values;
|
|
double *valuator = event->valuators.values;
|
|
int IsStylus=event->deviceid==MAIN.WacomDeviceStylus;
|
|
int IsStylus=event->deviceid==MAIN.WacomDeviceStylus;
|
|
if(!IsStylus) MAIN.PointerIsEraser = 1; else MAIN.PointerIsEraser = 0;
|
|
if(!IsStylus) MAIN.PointerIsEraser = 1; else MAIN.PointerIsEraser = 0;
|
|
-
|
|
|
|
|
|
|
|
//Window root_return, child_return;
|
|
//Window root_return, child_return;
|
|
//int root_x_return, root_y_return;
|
|
//int root_x_return, root_y_return;
|