Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create input system #27

Open
GoogleCodeExporter opened this issue Apr 11, 2015 · 2 comments
Open

Create input system #27

GoogleCodeExporter opened this issue Apr 11, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

The input system is located in GameInputManager.

Functionality is as follows:
GameInputManager is a key, mouse and joystick listener. All input events
must go through the GameInputManager. 

NOTE: The intricate details of the functionality are not included, it has
yet to be decided for an efficient and clean way of passing input events
around. 

Original issue reported on code.google.com by [email protected] on 17 Nov 2008 at 6:32

@GoogleCodeExporter
Copy link
Author

Original comment by [email protected] on 17 Nov 2008 at 6:33

  • Added labels: Component-Logic, Priority-Critical, Type-Enhancement-Code
  • Removed labels: Priority-Undefined, Type-Enhancement

@GoogleCodeExporter
Copy link
Author

The basic layout was decided for this system. 

Mappings to various inputs are stored in the game config. Mappings generate
ActionEvents, interested parties can receive notifications of ActionEvents by
registering an InputActionListener in the input manager. 
An ActionEvent specifies a floating point value 'velocity' indicating the delta 
(for
mouse movement and wheel), 0 or 1 (for buttons) or the current axis value 
(joystick).
Negative values represent their own input action, e.g negative mouse movement 
along
the X axis is different from positive movement along the X axis.

Original comment by [email protected] on 17 Nov 2008 at 7:53

  • Changed state: Started

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant