mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-04-23 08:36:42 +00:00
Suppress log spam from jinput on Windows 8 and higher
This commit is contained in:
@@ -2,6 +2,8 @@ package com.limelight.input;
|
|||||||
|
|
||||||
import java.lang.reflect.Constructor;
|
import java.lang.reflect.Constructor;
|
||||||
import java.util.LinkedList;
|
import java.util.LinkedList;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
import java.util.logging.Logger;
|
||||||
|
|
||||||
import com.limelight.nvstream.NvConnection;
|
import com.limelight.nvstream.NvConnection;
|
||||||
|
|
||||||
@@ -17,6 +19,9 @@ public class ControllerListener {
|
|||||||
* @return true if it started a thread, false if the thread is already running.
|
* @return true if it started a thread, false if the thread is already running.
|
||||||
*/
|
*/
|
||||||
public static boolean startUp() {
|
public static boolean startUp() {
|
||||||
|
// Suppress spam from jinput log warnings in DefaultControllerEnvironment
|
||||||
|
Logger.getLogger(ControllerEnvironment.getDefaultEnvironment().getClass().getName()).setLevel(Level.SEVERE);
|
||||||
|
|
||||||
if (listenerThread == null || !listenerThread.isAlive()) {
|
if (listenerThread == null || !listenerThread.isAlive()) {
|
||||||
System.out.println("Controller Listener thread starting up");
|
System.out.println("Controller Listener thread starting up");
|
||||||
listenerThread = new Thread() {
|
listenerThread = new Thread() {
|
||||||
|
|||||||
Reference in New Issue
Block a user