Skip to content

Commit

Permalink
4c05cc09 light bar
Browse files Browse the repository at this point in the history
  • Loading branch information
flibitijibibo committed Sep 28, 2017
1 parent e33fd05 commit 0a712b8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/FNAPlatform/SDL2_FNAPlatform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1719,15 +1719,17 @@ private static void INTERNAL_AddInstance(int dev)

// Initialize light bar
if ( OSVersion.Equals("Linux") &&
INTERNAL_guids[which].Equals("4c05c405") )
( INTERNAL_guids[which].Equals("4c05c405") ||
INTERNAL_guids[which].Equals("4c05cc09") ) )
{
// Get all of the individual PS4 LED instances
List<string> ledList = new List<string>();
string[] dirs = Directory.GetDirectories("/sys/class/leds/");
foreach (string dir in dirs)
{
if ( dir.Contains("054C:05C4") &&
dir.EndsWith("blue") )
if ( dir.EndsWith("blue") &&
( dir.Contains("054C:05C4") ||
dir.Contains("054C:09CC") ) )
{
ledList.Add(dir.Substring(0, dir.LastIndexOf(':') + 1));
}
Expand Down

0 comments on commit 0a712b8

Please sign in to comment.