# PySoy Controllers Declarations # # Copyright (C) 2006,2007,2008 PySoy Group # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published # by the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program; if not, see http://www.gnu.org/licenses # # $Id$ cimport soy._core cimport soy._internals cimport soy.actions cdef class Controller : cdef void _coreEventKeyDown ( self, unsigned char, unsigned char ) cdef void _coreEventKeyUp ( self, unsigned char, unsigned char ) cdef void _coreEventWinClose ( self ) cdef class Keyboard (Controller) : cdef soy._core.Window _window cdef void* _acts_keycde[256] cdef void* _acts_keysym[256] cdef class Window (Controller) : cdef soy._core.Window _window cdef void* _acts_close cdef class Keyboard2 (Controller) : cdef soy._core.Window _window cdef void* _acts_keycde_down[256] cdef void* _acts_keysym_down[256] cdef void* _acts_keycde_up[256] cdef void* _acts_keysym_up[256]