#ifndef __KBD_FIX_H__
#define __KBD_FIX_H__

#ifdef __APPLE__

#define xSDLK_q	171
#define xSDLK_w	172
#define xSDLK_e	173
#define xSDLK_r	174
#define xSDLK_t	176
#define xSDLK_y	175
#define xSDLK_u	179
#define xSDLK_i	181
#define xSDLK_o	178
#define xSDLK_p	182
#define xSDLK_LEFTBRACKET 180
#define xSDLK_RIGHTBRACKET 177

#define xSDLK_a	160
#define xSDLK_s	161
#define xSDLK_d	162
#define xSDLK_f	163
#define xSDLK_g	165
#define xSDLK_h	164
#define xSDLK_j	184
#define xSDLK_k	186
#define xSDLK_l	183
#define xSDLK_SEMICOLON 187
#define xSDLK_QUOTE 185
#define xSDLK_BACKSLASH 188

#define xSDLK_BACKQUOTE 93
#define xSDLK_z	166
#define xSDLK_x	167
#define xSDLK_c	168
#define xSDLK_v	169
#define xSDLK_b	170
#define xSDLK_n	190
#define xSDLK_m	191
#define xSDLK_COMMA 189
#define xSDLK_PERIOD 192

#define xSDLK_LSUPER 310

#else

#define xSDLK_q	SDLK_q
#define xSDLK_w	SDLK_w
#define xSDLK_e	SDLK_e
#define xSDLK_r	SDLK_r
#define xSDLK_t	SDLK_t
#define xSDLK_y	SDLK_y
#define xSDLK_u	SDLK_u
#define xSDLK_i	SDLK_i
#define xSDLK_o	SDLK_o
#define xSDLK_p	SDLK_p
#define xSDLK_LEFTBRACKET SDLK_LEFTBRACKET
#define xSDLK_RIGHTBRACKET SDLK_RIGHTBRACKET

#define xSDLK_a	SDLK_a
#define xSDLK_s	SDLK_s
#define xSDLK_d	SDLK_d
#define xSDLK_f	SDLK_f
#define xSDLK_g	SDLK_g
#define xSDLK_h	SDLK_h
#define xSDLK_j	SDLK_j
#define xSDLK_k	SDLK_k
#define xSDLK_l	SDLK_l
#define xSDLK_SEMICOLON SDLK_SEMICOLON
#define xSDLK_QUOTE SDLK_QUOTE
#define xSDLK_BACKSLASH SDLK_BACKSLASH

#define xSDLK_BACKQUOTE SDLK_BACKQUOTE
#define xSDLK_z	SDLK_z
#define xSDLK_x	SDLK_x
#define xSDLK_c	SDLK_c
#define xSDLK_v	SDLK_v
#define xSDLK_b	SDLK_b
#define xSDLK_n	SDLK_n
#define xSDLK_m	SDLK_m
#define xSDLK_COMMA SDLK_COMMA
#define xSDLK_PERIOD SDLK_PERIOD

#define xSDLK_LSUPER SDLK_LSUPER

#endif

#endif
