subsoap / defos

Extra native OS functions for games written using the Defold game engine
Creative Commons Zero v1.0 Universal
116 stars 16 forks source link

Get number of displays #87

Closed rgrams closed 5 years ago

rgrams commented 6 years ago

It would be great if DefOS had a function to get the number of available displays. Also, if possible, to get the name or some kind of identifier for each display.

dapetcu21 commented 6 years ago

My proposal:

local displays = defos.get_displays()

Returns a table displays, where displays[1] would be the main display. Each display would be a table that would contain:

rgrams commented 6 years ago

Yup! That would be perfect!

dapetcu21 commented 5 years ago

Closed by #67