Added private typedefs
Added subtractHalf()-method
Added callback methods
Added setMousePosition()-method