DefaultDisplayPositions - hossimo/GMA3Plugins GitHub Wiki
DefaultDisplayPositions() : object
Brief:
⚠ Warning Requires Additional information ⚠
Returns a default_display_object representing the details of each connected display.
This can be used to map the position of each display or for touch inputs
when onPc the x and y positions represent the top left corner of the MA window on the physical display, therefor the numbers may be offset based on the window position on the actual display.
Paramiters:
Name | Type | Description | Optional |
---|
Returns:
Type | Description |
---|---|
default_display_object | Data object needs further details |
Examples:
local display = DefaultDisplayPositions()
for i = 1, display.count, 1 do
Echo ("%s x:%d y:%d w:%d h:%d", display[i].name,
display[i].x,
display[i].y,
display[i].w,
display[i].h
)
end
--on a grandMA3 Light with no external displays returns:
--DefaultDisplayPosition 1 x:1920 y:0 w:1920 h:1080
--DefaultDisplayPosition 2 x:0 y:0 w:1920 h:1080
--DefaultDisplayPosition 3 x:0 y:0 w:0 h:0
--DefaultDisplayPosition 4 x:0 y:0 w:0 h:0
--DefaultDisplayPosition 5 x:0 y:0 w:0 h:0
--DefaultDisplayPosition 6 x:0 y:0 w:800 h:480
--DefaultDisplayPosition 7 x:0 y:0 w:800 h:480