Revert "Removes query_ioctl from driver-gamepad"

This reverts commit a596c7993100ea271d8b102c20a8c5b156f8d172.
Revert "Removes query_ioctl from game.c"

This reverts commit 4eb155703067246ba1682a5ae516037e1a2d502b.

Conflicts:
	game-1.0/game.c