# So, i am using SDL and i am trying to determine if a modkey was presses using proc getModState: Keymod {.importc: "SDL_GetModState".} ## Get the current key modifier state for the keyboard # How do i compare it, `==` dosen't work # this is the enum type Keymod {.size: sizeof(cint).} = enum KMOD_NONE = 0x0000, KMOD_LSHIFT = 0x0001, KMOD_RSHIFT = 0x0002, KMOD_LCTRL= 0x0040, KMOD_RCTRL = 0x0080, KMOD_LALT = 0x0100, KMOD_RALT = 0x0200, KMOD_LGUI = 0x0400, KMOD_RGUI = 0x0800, KMOD_NUM = 0x1000, KMOD_CAPS = 0x2000, KMOD_MODE = 0x4000, KMOD_RESERVED=0x8000