public void run() {
        Process p = null;
        try {
            if(game.GetOS.isWindows())
                p = Runtime.getRuntime().exec("XboxControllerInputConsole.exe");

            if(game.GetOS.isUnix() || game.GetOS.isMac())
                p = Runtime.getRuntime().exec("./xboxdrv.sh");

        } catch (IOException e) {
            System.err.println("Couldn't start Xbox Controller Drivers");
            e.printStackTrace();
        }
        input =new BufferedReader(new InputStreamReader(p.getInputStream()));

        try {
            while ((line = input.readLine()) != null)
            {
                tokenizer = new StringTokenizer(line, ",");
                button_string = tokenizer.nextToken();
                leftStick_string = tokenizer.nextToken();
                rightStick_string = tokenizer.nextToken();
                leftTrigger_string = tokenizer.nextToken();
                rightTrigger_string = tokenizer.nextToken();
                update(true);

            }
        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }