include/sge/input/key_type.hpp File Reference

#include "../export.hpp"
#include "../string.hpp"

Go to the source code of this file.

Namespaces

namespace  sge
namespace  sge::input
namespace  sge::input::kc

Classes

class  sge::input::key_type
class  sge::input::key_pair

Typedefs

typedef kc::type sge::input::key_code
typedef int sge::input::key_state

Enumerations

enum  sge::input::kc::type {
  sge::input::kc::input_type_mask = 0xf000U, sge::input::kc::input_keyid_mask = 0x0fffU, sge::input::kc::input_type_keyboard = 0x1000U, sge::input::kc::input_type_mouse_key = 0x2000U,
  sge::input::kc::input_type_mouse_axis = 0x3000U, sge::input::kc::input_type_joystick_key = 0x4000U, sge::input::kc::input_type_joystick_axis = 0x5000U, sge::input::kc::none = 0x0000U,
  sge::input::kc::key_escape = input_type_keyboard, sge::input::kc::key_return, sge::input::kc::key_lshift, sge::input::kc::key_rshift,
  sge::input::kc::key_tab, sge::input::kc::key_backspace, sge::input::kc::key_lctrl, sge::input::kc::key_rctrl,
  sge::input::kc::key_alt, sge::input::kc::key_altgr, sge::input::kc::key_space, sge::input::kc::key_insert,
  sge::input::kc::key_home, sge::input::kc::key_pageup, sge::input::kc::key_delete, sge::input::kc::key_end,
  sge::input::kc::key_pagedown, sge::input::kc::key_left, sge::input::kc::key_right, sge::input::kc::key_up,
  sge::input::kc::key_down, sge::input::kc::key_a, sge::input::kc::key_b, sge::input::kc::key_c,
  sge::input::kc::key_d, sge::input::kc::key_e, sge::input::kc::key_f, sge::input::kc::key_g,
  sge::input::kc::key_h, sge::input::kc::key_i, sge::input::kc::key_j, sge::input::kc::key_k,
  sge::input::kc::key_l, sge::input::kc::key_m, sge::input::kc::key_n, sge::input::kc::key_o,
  sge::input::kc::key_p, sge::input::kc::key_q, sge::input::kc::key_r, sge::input::kc::key_s,
  sge::input::kc::key_t, sge::input::kc::key_u, sge::input::kc::key_v, sge::input::kc::key_w,
  sge::input::kc::key_x, sge::input::kc::key_y, sge::input::kc::key_z, sge::input::kc::key_0,
  sge::input::kc::key_1, sge::input::kc::key_2, sge::input::kc::key_3, sge::input::kc::key_4,
  sge::input::kc::key_5, sge::input::kc::key_6, sge::input::kc::key_7, sge::input::kc::key_8,
  sge::input::kc::key_9, sge::input::kc::key_f1, sge::input::kc::key_f2, sge::input::kc::key_f3,
  sge::input::kc::key_f4, sge::input::kc::key_f5, sge::input::kc::key_f6, sge::input::kc::key_f7,
  sge::input::kc::key_f8, sge::input::kc::key_f9, sge::input::kc::key_f10, sge::input::kc::key_f11,
  sge::input::kc::key_f12, sge::input::kc::key_f13, sge::input::kc::key_f14, sge::input::kc::key_f15,
  sge::input::kc::key_comma, sge::input::kc::key_colon, sge::input::kc::key_apostrophe, sge::input::kc::key_backslash,
  sge::input::kc::key_grave, sge::input::kc::key_substract, sge::input::kc::key_lbracket, sge::input::kc::key_rbracket,
  sge::input::kc::key_semicolon, sge::input::kc::key_slash, sge::input::kc::key_underline, sge::input::kc::key_scroll,
  sge::input::kc::key_pause, sge::input::kc::key_lwin, sge::input::kc::key_rwin, sge::input::kc::key_num0,
  sge::input::kc::key_num1, sge::input::kc::key_num2, sge::input::kc::key_num3, sge::input::kc::key_num4,
  sge::input::kc::key_num5, sge::input::kc::key_num6, sge::input::kc::key_num7, sge::input::kc::key_num8,
  sge::input::kc::key_num9, sge::input::kc::key_numcomma, sge::input::kc::key_numenter, sge::input::kc::key_numlock,
  sge::input::kc::key_add, sge::input::kc::key_minus, sge::input::kc::key_multiply, sge::input::kc::key_divide,
  sge::input::kc::key_equals, sge::input::kc::key_kana, sge::input::kc::key_kanji, sge::input::kc::key_next,
  sge::input::kc::key_numequals, sge::input::kc::key_period, sge::input::kc::key_yen, sge::input::kc::X_NUM_KEY_KEYS,
  sge::input::kc::num_key_keys = X_NUM_KEY_KEYS & input_keyid_mask, sge::input::kc::mouse_l = input_type_mouse_key, sge::input::kc::mouse_m, sge::input::kc::mouse_r,
  sge::input::kc::X_NUM_MOUSE_KEYS, sge::input::kc::num_mouse_keys = X_NUM_MOUSE_KEYS & input_keyid_mask, sge::input::kc::mouse_x_axis = input_type_mouse_axis, sge::input::kc::mouse_y_axis,
  sge::input::kc::mouse_z_axis, sge::input::kc::X_NUM_MOUSE_AXIS, sge::input::kc::num_mouse_axis = X_NUM_MOUSE_AXIS & input_keyid_mask, sge::input::kc::X_NUM_JOYSTICK_KEYS = input_type_joystick_key,
  sge::input::kc::num_joystick_keys = X_NUM_JOYSTICK_KEYS & input_keyid_mask, sge::input::kc::X_NUM_JOYSTICK_AXIS = input_type_joystick_axis, sge::input::kc::num_joystick_axis = X_NUM_JOYSTICK_AXIS & input_keyid_mask, sge::input::kc::num_total_keys = num_key_keys + num_mouse_keys + num_mouse_axis + num_joystick_keys + num_joystick_axis
}

Functions

bool sge::input::operator< (const key_type &l, const key_type &r)
bool sge::input::operator== (const key_type &l, const key_type &r)
bool sge::input::operator!= (const key_type &l, const key_type &r)
bool sge::input::is_mouse_button (const key_code key)
bool sge::input::is_mouse_axis (const key_code key)
bool sge::input::is_keyboard_key (const key_code key)
bool sge::input::is_shift (const key_code key)
bool sge::input::is_ctrl (const key_code key)
bool sge::input::is_alt (const key_code key)


Generated on Wed Sep 10 22:17:46 2008 for sge by  doxygen 1.5.5