Skip to content
This repository has been archived by the owner on Mar 9, 2023. It is now read-only.

Commit

Permalink
brief cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
wormyrocks committed Feb 2, 2018
1 parent 22843ed commit 9721667
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Assets/JoyconDemo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ void Start ()
accel = new Vector3(0, 0, 0);
// get the public Joycon array attached to the JoyconManager in scene
joycons = JoyconManager.Instance.j;
if (joycons.Count < jc_ind+1){
Destroy(gameObject);
}
}

// Update is called once per frame
Expand Down
3 changes: 0 additions & 3 deletions Assets/JoyconLib_scripts/Joycon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -370,9 +370,6 @@ public void Update()
DebugPrint(string.Format("Dequeue. Queue length: {0:d}. Packet ID: {1:X2}. Timestamp: {2:X2}. Lag to dequeue: {3:s}. Lag between packets (expect 15ms): {4:s}",
reports.Count, report_buf[0], report_buf[1], System.DateTime.Now.Subtract(rep.GetTime()), rep.GetTime().Subtract(ts_prev)), DebugType.THREADING);
ts_prev = rep.GetTime();
if (reports.Count > 1){
Debug.Log(reports.Count);
}
}
ProcessButtonsAndStick(report_buf);
if (rumble_obj.timed_rumble) {
Expand Down

0 comments on commit 9721667

Please sign in to comment.