Blender V2.61 - r43446
|
#include <stddef.h>
#include "SCA_KeyboardSensor.h"
#include "SCA_KeyboardManager.h"
#include "SCA_LogicManager.h"
#include "StringValue.h"
#include "SCA_IInputDevice.h"
Go to the source code of this file.
Functions | |
char | ToCharacter (int keyIndex, bool shifted) |
bool | IsPrintable (int keyIndex) |
bool | IsDelete (int keyIndex) |
Definition in file SCA_KeyboardSensor.cpp.
bool IsDelete | ( | int | keyIndex | ) |
Tests whether this is a delete key.
Definition at line 650 of file SCA_KeyboardSensor.cpp.
References SCA_IInputDevice::KX_BACKSPACEKEY, and SCA_IInputDevice::KX_DELKEY.
bool IsPrintable | ( | int | keyIndex | ) |
Determine whether this character can be printed. We cannot use the library functions here, because we need to test our own keycodes.
Definition at line 608 of file SCA_KeyboardSensor.cpp.
References SCA_IInputDevice::KX_AKEY, SCA_IInputDevice::KX_BACKSPACEKEY, SCA_IInputDevice::KX_COMMAKEY, SCA_IInputDevice::KX_DELKEY, SCA_IInputDevice::KX_NINEKEY, SCA_IInputDevice::KX_PAD2, SCA_IInputDevice::KX_PADASTERKEY, SCA_IInputDevice::KX_PADENTER, SCA_IInputDevice::KX_PADPLUSKEY, SCA_IInputDevice::KX_PERIODKEY, SCA_IInputDevice::KX_RETKEY, SCA_IInputDevice::KX_RIGHTBRACKETKEY, SCA_IInputDevice::KX_SEMICOLONKEY, SCA_IInputDevice::KX_SPACEKEY, SCA_IInputDevice::KX_TABKEY, SCA_IInputDevice::KX_ZEROKEY, and SCA_IInputDevice::KX_ZKEY.
char ToCharacter | ( | int | keyIndex, |
bool | shifted | ||
) |
Transform keycodes to something printable.
Definition at line 516 of file SCA_KeyboardSensor.cpp.
References SCA_IInputDevice::KX_AKEY, SCA_IInputDevice::KX_COMMAKEY, SCA_IInputDevice::KX_MINUSKEY, SCA_IInputDevice::KX_NINEKEY, SCA_IInputDevice::KX_PAD2, SCA_IInputDevice::KX_PADASTERKEY, SCA_IInputDevice::KX_PADENTER, SCA_IInputDevice::KX_PADPLUSKEY, SCA_IInputDevice::KX_PERIODKEY, SCA_IInputDevice::KX_RETKEY, SCA_IInputDevice::KX_RIGHTBRACKETKEY, SCA_IInputDevice::KX_SEMICOLONKEY, SCA_IInputDevice::KX_SPACEKEY, SCA_IInputDevice::KX_TABKEY, SCA_IInputDevice::KX_ZEROKEY, and SCA_IInputDevice::KX_ZKEY.