basic event creation for mouse input