Privatize Simulation vars
Change UIEvent "eventType" to an int "eventCode"

Also add some sample eventCodes
Implement UIEvent processing, add move events