Camera:onContext()event

widget only

This event is only available when the ui module is loaded before capture and Camera is used as a widget.
This event is fired when the user right-clicks on the Camera widget.

Return value

The event returns no value.

Example

--! luart-extensions import ui, capture local win = ui.Window("Camera:onContext() sample", "fixed", 640, 520) local cam = ui.Camera(win, 10, 10, 620, 460) function cam:onContext() print("Right-clicked on Camera") end await win:showasync()