Changeset 102


Ignore:
Timestamp:
Jan 18, 2012, 5:50:11 AM (7 years ago)
Author:
drazed
Message:

fix touch-release to work around fractional-total-touch-area change.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • touchless.lua

    r101 r102  
    2222end
    2323
    24 
    2524local pressX = 0
    2625local pressY = 0
     
    3736        local diffX = screenX - pressX
    3837        local diffY = screenY - pressY
     38
     39        -- recent changes make touch release return the fraction of total touch area moved rather then actual pixels, since pixels are superior lets convert this fraction back to pixels and keep our original logic in tact :)
     40        -- we user 0.25 of the available xres and 0.4 of the available yres
     41        diffX = diffX*xres*0.25
     42        diffY = diffY*yres*0.40
    3943
    4044        -- defualt pin/unip
Note: See TracChangeset for help on using the changeset viewer.