Event id for pressing a key on the mouse (also triggered by screen touches on mobile devices). Calls the PointerPressCallback.
-- Create a functionlocal pointerPressed = function(p, bt, x, y) osrs.printf("Pointer: %i Button: %i move to X: %i Y: %i", p, bt, x, y)end-- Subscribe to the functionosrs.Events.subscribe(pointerPressed, osrs.Events.POINTER_PRESS) Copy
-- Create a functionlocal pointerPressed = function(p, bt, x, y) osrs.printf("Pointer: %i Button: %i move to X: %i Y: %i", p, bt, x, y)end-- Subscribe to the functionosrs.Events.subscribe(pointerPressed, osrs.Events.POINTER_PRESS)
Event id for pressing a key on the mouse (also triggered by screen touches on mobile devices). Calls the PointerPressCallback.
Example