Changed switch cases to use SDL definitions