Source

pygamekit / input.pxd

Full commit

from prerequisites cimport *
from gkmath cimport *

cdef enum gkInputState:
    GK_NullState = 0
    GK_Pressed
    GK_Released

cdef enum gkScanCode:
    KC_MAX

cdef extern from "gkInput.h":
    
    cdef cppclass gkKeyboard:
        gkKeyboard()
        clear()
        int key_count
        int keys[]
        unsigned int text
        int key_mod
        
    cdef cppclass gkMouse:
        gkVector2 getPosition()
        gkVector2 getRelative()
        bool isButtonDown(int)
        bool mouseMoved()
        clear()
        gkScalar wheelDelta
        int buttons[3]

        
cdef extern from "gkWindowSystem.h":
    cppclass gkWindowSystem "gkWindowSystem::getSingleton":
        gkWindowSystem()
        gkKeyboard *getKeyboard()
        gkMouse *getMouse()
        #m_joy      = gkWindowSystem::getSingleton().getJoystick(0);