source: trunk/src/org/expeditee/gio/input/InputEvent.java@ 1097

Last change on this file since 1097 was 1097, checked in by davidb, 6 years ago

Newly structured files from Corey's work on logic/graphics separation

File size: 589 bytes
Line 
1package org.expeditee.gio.input;
2
3/**
4 * The base class for all input event types.
5 *
6 * @author cts16
7 */
8public class InputEvent {
9
10 /** The possible types of input Expeditee deals with. */
11 public enum InputType {
12 KBM,
13 TIMEOUT,
14 TOUCH,
15 VOICE,
16 ETC
17 }
18
19 /** The type of input this event came from. */
20 private InputType _inputType;
21
22 /** Standard constructor must provide the type of input event. */
23 protected InputEvent(InputType type)
24 {
25 _inputType = type;
26 }
27
28 /** Returns the input type for this event. */
29 public InputType getInputType()
30 {
31 return _inputType;
32 }
33}
Note: See TracBrowser for help on using the repository browser.