I'm sure there's an abstraction over all of it. The game just has to support N controllers. The number of inputs necessary to drive mariokart are pretty small (turning, acceleration, menus, items). Other than maybe displaying some specific images for each controller type, I doubt the game actually cares deeply about the full vs half controller.