KMag used to zoom into part of the screen got just today an additional mode: Follow Focus Mode. That means that kmag can now follow either the mouse pointer or the keyboard cursor.
Video of KMag with 'Follow Focus' mode
Extending for example KWin's full-screen zoom plugin can be done with something like;
"/Adaptor", "org.kde.kaccessibleapp.Adaptor", "focusChanged",