*/}}
Yiming Wu 1 年之前
父節點
當前提交
7e0207f9fa
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      la_kernel.c

+ 1 - 1
la_kernel.c

@@ -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->AngleX=MAIN.PointerIsEraser?MAIN.EraserAngleX:MAIN.StylusAngleX;
     e->AngleY=MAIN.PointerIsEraser?MAIN.EraserAngleY:MAIN.StylusAngleY;
+    e->IsEraser=MAIN.PointerIsEraser;
 
     lstAppendItem(el, (laListItem *)e);
     laMappingRequestEval();
@@ -6047,7 +6048,6 @@ static void la_RecordWacomMotions(XIRawEvent *event)
     double *valuator = event->valuators.values;
     int IsStylus=event->deviceid==MAIN.WacomDeviceStylus;
     if(!IsStylus) MAIN.PointerIsEraser = 1; else MAIN.PointerIsEraser = 0;
-    
 
     //Window root_return, child_return;
     //int root_x_return, root_y_return;