wire up new-style car.* handlers

akkartik
Dec 26, 2023, 5:28 PM
ADXY3K5ZBXI6AOWYGUVH4E74E3T5X52AYT2QU2S2CWDKZAYNU5EQC

Dependencies

Change contents

  • file addition: 0157-on.touch_move (----------)
    [2.2]
    on.touch_move = function(id, x,y, dx,dy, pressure)
    if car.touchmoved then
    call_protected(car.touchmoved, id, x,y, dx,dy, pressure)
    end
    if car.touch_move then
    call_protected(car.touch_move, id, x,y, dx,dy, pressure)
    end
    end
  • file addition: 0156-on.touch_release (----------)
    [2.2]
    on.touch_release = function(id, x,y, dx,dy, pressure)
    if car.touchreleased then
    call_protected(car.touchreleased, id, x,y, dx,dy, pressure)
    end
    if car.touch_release then
    call_protected(car.touch_release, id, x,y, dx,dy, pressure)
    end
    end
  • file addition: 0155-on.touch_press (----------)
    [2.2]
    on.touch_press = function(id, x,y, dx,dy, pressure)
    if car.touchpressed then
    call_protected(car.touchpressed, id, x,y, dx,dy, pressure)
    end
    if car.touch_press then
    call_protected(car.touch_press, id, x,y, dx,dy, pressure)
    end
    end