Added input device hooks