| 1 | # PySoy Controllers Declarations |
|---|
| 2 | # |
|---|
| 3 | # Copyright (C) 2006,2007,2008 PySoy Group |
|---|
| 4 | # |
|---|
| 5 | # This program is free software; you can redistribute it and/or modify |
|---|
| 6 | # it under the terms of the GNU Affero General Public License as published |
|---|
| 7 | # by the Free Software Foundation, either version 3 of the License, or |
|---|
| 8 | # (at your option) any later version. |
|---|
| 9 | # |
|---|
| 10 | # This program is distributed in the hope that it will be useful, |
|---|
| 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 13 | # GNU Affero General Public License for more details. |
|---|
| 14 | # |
|---|
| 15 | # You should have received a copy of the GNU Affero General Public License |
|---|
| 16 | # along with this program; if not, see http://www.gnu.org/licenses |
|---|
| 17 | # |
|---|
| 18 | # $Id$ |
|---|
| 19 | |
|---|
| 20 | cimport soy._core |
|---|
| 21 | cimport soy._internals |
|---|
| 22 | cimport soy.actions |
|---|
| 23 | |
|---|
| 24 | cdef class Controller : |
|---|
| 25 | cdef void _coreEventKeyDown ( self, unsigned char, unsigned char ) |
|---|
| 26 | cdef void _coreEventKeyUp ( self, unsigned char, unsigned char ) |
|---|
| 27 | cdef void _coreEventWinClose ( self ) |
|---|
| 28 | |
|---|
| 29 | cdef class Keyboard (Controller) : |
|---|
| 30 | cdef soy._core.Window _window |
|---|
| 31 | cdef void* _acts_keycde[256] |
|---|
| 32 | cdef void* _acts_keysym[256] |
|---|
| 33 | |
|---|
| 34 | cdef class Window (Controller) : |
|---|
| 35 | cdef soy._core.Window _window |
|---|
| 36 | cdef void* _acts_close |
|---|
| 37 | |
|---|
| 38 | cdef class Keyboard2 (Controller) : |
|---|
| 39 | cdef soy._core.Window _window |
|---|
| 40 | cdef void* _acts_keycde_down[256] |
|---|
| 41 | cdef void* _acts_keysym_down[256] |
|---|
| 42 | cdef void* _acts_keycde_up[256] |
|---|
| 43 | cdef void* _acts_keysym_up[256] |
|---|