added mouse button event cached value usage, altered ordering of arguments