(GX) Make input driver more generic