Added mouse support. Constants not yet defined.