Removed const for int parameters, added mouse/keyboard init code