Skip to content

Commit

Permalink
Missed a file during check in for multiple monitor selection.
Browse files Browse the repository at this point in the history
  • Loading branch information
bob0bob committed Jun 8, 2023
1 parent 75f6d66 commit 8ef3c5e
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions jme3-core/src/main/java/com/jme3/app/LegacyApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -852,4 +852,28 @@ public Object call() {
return null;
}
}

/**
* This call will return a list of Monitors that glfwGetMonitors()
* returns and information about the monitor, like width, height,
* and refresh rate.
*
* @return returns a list of monitors and their information.
*/
public Monitors getMonitors()
{
return context.getMonitors();
}

/**
* Use this to get the positional number of the primary
* monitor from the glfwGetMonitors() function call.
*
* @return the position of the value in the arraylist of
* the primary monitor.
*/
public int getPrimaryMonitor()
{
return context.getPrimaryMonitor();
}
}

0 comments on commit 8ef3c5e

Please sign in to comment.