Gimp only recognizes a change in input device (from pen to mouse) when the cursor leaves the painting area. If I paint with my pen, stop and then move my mouse it will move the cursor but the brush ...
In previous versions of GIMP only pressure was recognized by the brush tool. It wasn't much but it was simple. The new GIMP 2.8 introduces an all new brush dynamics system with a ton of customization ...