*/}}
Browse Source

Good pressure flag

YimingWu 1 year ago
parent
commit
dfbcbd8522
2 changed files with 2 additions and 1 deletions
  1. 1 1
      la_interface.h
  2. 1 0
      la_kernel.c

+ 1 - 1
la_interface.h

@@ -181,7 +181,7 @@ STRUCTURE(laEvent){
     int p1, p2;
     int p1, p2;
     uint32_t Input;
     uint32_t Input;
 
 
-    int IsEraser;
+    int GoodPressure,IsEraser;
     real Pressure,AngleX,AngleY;
     real Pressure,AngleX,AngleY;
 
 
     void *Localized;
     void *Localized;

+ 1 - 0
la_kernel.c

@@ -823,6 +823,7 @@ void la_SaveEvent(Window hwnd, laEvent *e, int use_last_pos){
     e->AngleX=rad(MAIN.PointerIsEraser?MAIN.EraserAngleX:MAIN.StylusAngleX);
     e->AngleX=rad(MAIN.PointerIsEraser?MAIN.EraserAngleX:MAIN.StylusAngleX);
     e->AngleY=rad(MAIN.PointerIsEraser?MAIN.EraserAngleY:MAIN.StylusAngleY);
     e->AngleY=rad(MAIN.PointerIsEraser?MAIN.EraserAngleY:MAIN.StylusAngleY);
     e->IsEraser=MAIN.PointerIsEraser;
     e->IsEraser=MAIN.PointerIsEraser;
+    e->GoodPressure=MAIN.IsPen;
 
 
     lstAppendItem(el, (laListItem *)e);
     lstAppendItem(el, (laListItem *)e);
     laMappingRequestEval();
     laMappingRequestEval();