src/Input.cc
author ekku
Sat, 06 Dec 2008 19:38:01 +0000
changeset 225 22ecb9cb9245
parent 221 fbc5db6fce45
child 229 355e46effa41
permissions -rw-r--r--
Rope can be drawn.
221
fbc5db6fce45 reorganize the weapons code and input handling code
terom
parents:
diff changeset
     1
fbc5db6fce45 reorganize the weapons code and input handling code
terom
parents:
diff changeset
     2
#define INPUT_CC
fbc5db6fce45 reorganize the weapons code and input handling code
terom
parents:
diff changeset
     3
fbc5db6fce45 reorganize the weapons code and input handling code
terom
parents:
diff changeset
     4
#include "Input.hh"
fbc5db6fce45 reorganize the weapons code and input handling code
terom
parents:
diff changeset
     5
fbc5db6fce45 reorganize the weapons code and input handling code
terom
parents:
diff changeset
     6
static InputKeymapEntry INPUT_KEYMAP[] = {
fbc5db6fce45 reorganize the weapons code and input handling code
terom
parents:
diff changeset
     7
    {   CL_KEY_UP,      INPUT_AIM_UP        },
fbc5db6fce45 reorganize the weapons code and input handling code
terom
parents:
diff changeset
     8
    {   CL_KEY_DOWN,    INPUT_AIM_DOWN      },
fbc5db6fce45 reorganize the weapons code and input handling code
terom
parents:
diff changeset
     9
    {   CL_KEY_LEFT,    INPUT_MOVE_LEFT     },
fbc5db6fce45 reorganize the weapons code and input handling code
terom
parents:
diff changeset
    10
    {   CL_KEY_RIGHT,   INPUT_MOVE_RIGHT    },
fbc5db6fce45 reorganize the weapons code and input handling code
terom
parents:
diff changeset
    11
    {   CL_KEY_RSHIFT,  INPUT_JUMP          },
fbc5db6fce45 reorganize the weapons code and input handling code
terom
parents:
diff changeset
    12
    {   CL_KEY_M,       INPUT_DIG           },
fbc5db6fce45 reorganize the weapons code and input handling code
terom
parents:
diff changeset
    13
    {   CL_KEY_F,       INPUT_SHOOT         },
fbc5db6fce45 reorganize the weapons code and input handling code
terom
parents:
diff changeset
    14
    {   CL_KEY_D,       INPUT_CHANGE        },
225
22ecb9cb9245 Rope can be drawn.
ekku
parents: 221
diff changeset
    15
    {   CL_KEY_R,       INPUT_ROPE          },
221
fbc5db6fce45 reorganize the weapons code and input handling code
terom
parents:
diff changeset
    16
    {   0,              (_PlayerInput) 0    }
fbc5db6fce45 reorganize the weapons code and input handling code
terom
parents:
diff changeset
    17
};
fbc5db6fce45 reorganize the weapons code and input handling code
terom
parents:
diff changeset
    18
fbc5db6fce45 reorganize the weapons code and input handling code
terom
parents:
diff changeset
    19
InputKeymapEntry* getGlobalInputKeymap (void) {
fbc5db6fce45 reorganize the weapons code and input handling code
terom
parents:
diff changeset
    20
    return INPUT_KEYMAP;
fbc5db6fce45 reorganize the weapons code and input handling code
terom
parents:
diff changeset
    21
}