title: Java "global" object
body: <p>I'm writing a game in Java. Is it bad practice to have a thing like</p>
  
  <pre><code>public class Constants
  {
      public static Mouse mouse;
      public static Keyboard keyboard;
  }
  </code></pre>
  
  <p>(Mouse and Keyboard are objects that return input)</p>
  
  <p>Or would it be preferrable to have an object with these fields, passed to the objects that need them? </p>
  
  <p>Thanks.</p>