Logo Search packages:      
Sourcecode: blender version File versions  Download package

GPG_KeyboardDevice Class Reference

#include <GPG_KeyboardDevice.h>

Inheritance diagram for GPG_KeyboardDevice:

GPC_KeyboardDevice

List of all members.


Detailed Description

Id
GPG_KeyboardDevice.h 14444 2008-04-16 22:40:48Z hos

***** BEGIN GPL LICENSE BLOCK *****

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 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 General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

The Original Code is Copyright (C) 2001-2002 by NaN Holding BV. All rights reserved.

The Original Code is: all of this file.

Contributor(s): none yet.

***** END GPL LICENSE BLOCK ***** GHOST Blender Player keyboard device. GHOST implementation of GPC_KeyboardDevice. The contructor fills the keyboard code translation map. Base class GPC_KeyboardDevice does the rest.

See also:
SCA_IInputDevice

Definition at line 47 of file GPG_KeyboardDevice.h.


Public Types

enum  KX_EnumInputs {
  KX_NOKEY = 0, KX_TIMER0, KX_TIMER1, KX_TIMER2,
  KX_TIMER3, KX_KEYBD, KX_RAWKEYBD, KX_REDRAW,
  KX_INPUTCHANGE, KX_QFULL, KX_WINFREEZE, KX_WINTHAW,
  KX_WINCLOSE = 14, KX_WINQUIT, KX_Q_FIRSTTIME, KX_BEGINKEY = 12,
  KX_RETKEY = 13, KX_SPACEKEY = 32, KX_PADASTERKEY = 42, KX_COMMAKEY = 44,
  KX_MINUSKEY = 45, KX_PERIODKEY = 46, KX_ZEROKEY = 48, KX_ONEKEY,
  KX_TWOKEY, KX_THREEKEY, KX_FOURKEY, KX_FIVEKEY,
  KX_SIXKEY, KX_SEVENKEY, KX_EIGHTKEY, KX_NINEKEY,
  KX_AKEY = 97, KX_BKEY, KX_CKEY, KX_DKEY,
  KX_EKEY, KX_FKEY, KX_GKEY, KX_HKEY,
  KX_IKEY, KX_JKEY, KX_KKEY, KX_LKEY,
  KX_MKEY, KX_NKEY, KX_OKEY, KX_PKEY,
  KX_QKEY, KX_RKEY, KX_SKEY, KX_TKEY,
  KX_UKEY, KX_VKEY, KX_WKEY, KX_XKEY,
  KX_YKEY, KX_ZKEY, KX_CAPSLOCKKEY, KX_LEFTCTRLKEY,
  KX_LEFTALTKEY, KX_RIGHTALTKEY, KX_RIGHTCTRLKEY, KX_RIGHTSHIFTKEY,
  KX_LEFTSHIFTKEY, KX_ESCKEY, KX_TABKEY, KX_LINEFEEDKEY,
  KX_BACKSPACEKEY, KX_DELKEY, KX_SEMICOLONKEY, KX_QUOTEKEY,
  KX_ACCENTGRAVEKEY, KX_SLASHKEY, KX_BACKSLASHKEY, KX_EQUALKEY,
  KX_LEFTBRACKETKEY, KX_RIGHTBRACKETKEY, KX_LEFTARROWKEY, KX_DOWNARROWKEY,
  KX_RIGHTARROWKEY, KX_UPARROWKEY, KX_PAD2, KX_PAD4,
  KX_PAD6, KX_PAD8, KX_PAD1, KX_PAD3,
  KX_PAD5, KX_PAD7, KX_PAD9, KX_PADPERIOD,
  KX_PADSLASHKEY, KX_PAD0, KX_PADMINUS, KX_PADENTER,
  KX_PADPLUSKEY, KX_F1KEY, KX_F2KEY, KX_F3KEY,
  KX_F4KEY, KX_F5KEY, KX_F6KEY, KX_F7KEY,
  KX_F8KEY, KX_F9KEY, KX_F10KEY, KX_F11KEY,
  KX_F12KEY, KX_PAUSEKEY, KX_INSERTKEY, KX_HOMEKEY,
  KX_PAGEUPKEY, KX_PAGEDOWNKEY, KX_ENDKEY, KX_BEGINMOUSE,
  KX_BEGINMOUSEBUTTONS, KX_LEFTMOUSE, KX_MIDDLEMOUSE, KX_RIGHTMOUSE,
  KX_ENDMOUSEBUTTONS, KX_WHEELUPMOUSE, KX_WHEELDOWNMOUSE, KX_MOUSEX,
  KX_MOUSEY, KX_ENDMOUSE, KX_MAX_KEYS
}

Public Member Functions

virtual bool ConvertEvent (int incode, int val)
virtual const SCA_InputEventGetEventValue (SCA_IInputDevice::KX_EnumInputs inputcode)
virtual int GetNumActiveEvents ()
virtual int GetNumJustEvents ()
 GPG_KeyboardDevice (void)
virtual void HookEscape ()
virtual bool IsPressed (SCA_IInputDevice::KX_EnumInputs inputcode)
virtual void NextFrame ()
virtual KX_EnumInputs ToNative (int incode)

Public Attributes

bool m_hookesc

Protected Member Functions

void ClearStatusTable (int tableid)

Protected Attributes

int m_currentTable
SCA_InputEvent m_eventStatusTables [2][SCA_IInputDevice::KX_MAX_KEYS]
std::map< int, KX_EnumInputs > m_reverseKeyTranslateTable

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index