StrokesPlus Forum
                       
StrokesPlus Forum
Home | Profile | Register | Active Topics
Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Lua Scripts
 Internal Functions (actions)
 Variables available to all Lua scripts
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Rob

USA
2588 Posts

Posted - 12/15/2011 :  10:31:42  Show Profile  Visit Rob's Homepage  Reply with Quote
sp_gesture_name: string - The name of the drawn gesture

sp_gesture_start_x: integer - The X coordinate of where the gesture began
sp_gesture_start_y: integer - The Y coordinate of where the gesture began

sp_gesture_end_x: integer - The X coordinate of where the gesture ended
sp_gesture_end_y: integer - The Y coordinate of where the gesture ended

sp_wheel_delta: integer - The mouse wheel scroll delta [positive or negative number], standard mouse wheels are 120 per wheel tick

Rob

USA
2588 Posts

Posted - 01/01/2012 :  06:18:20  Show Profile  Visit Rob's Homepage  Reply with Quote
Added, in Beta 1.0.19, shortened gesture variable names to make script reading easier:

- sp_gesture_name may also be referenced as gnm
- sp_gesture_start_x may also be referenced as gsx
- sp_gesture_start_y may also be referenced as gsy
- sp_gesture_end_x may also be referenced as gex
- sp_gesture_end_y may also be referenced as gey
- sp_wheel_delta may also be referenced as gwd
Go to Top of Page

Rob

USA
2588 Posts

Posted - 07/03/2012 :  01:25:37  Show Profile  Visit Rob's Homepage  Reply with Quote
Oops, forgot to update this post:

sp_action_name - name of the action (or gact)
sp_app_name - name of the application (or gapp)
gbl - bounding left coordinate (left-most X of the drawn gesture)
gbt - bounding top coordinate (top-most Y of the drawn gesture)
gbr - bounding right coordinate (right-most X of the drawn gesture)
gbb - bounding bottom coordinate (bottom-most Y of the drawn gesture)
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
StrokesPlus Forum © 2011-2018 Rob Yapchanyk Go To Top Of Page
Snitz Forums 2000