void processEvents() {
       if (Mouse.isButtonDown(1)) {
           if (Mouse.getX() <= xOrigin + length && Mouse.getX() >= xOrigin) {
               if (Mouse.getY() <= yOrigin + height && Mouse.getY() >= yOrigin) {
                   doAction();
               }
           }
       }
   }