2002-11-16 08:07:38 +00:00
|
|
|
#ifndef RAGEINPUT_H
|
|
|
|
|
#define RAGEINPUT_H
|
2001-11-04 19:34:28 +00:00
|
|
|
/*
|
|
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
File: RageInput.h
|
|
|
|
|
|
2002-11-29 20:37:12 +00:00
|
|
|
Desc: Wrapper for SDL's input routines. Generates InputEvents.
|
2001-11-04 19:34:28 +00:00
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
*/
|
2001-11-03 10:52:42 +00:00
|
|
|
|
2003-02-15 18:49:18 +00:00
|
|
|
#include "RageInputDevice.h"
|
2001-11-21 03:21:00 +00:00
|
|
|
|
2003-06-29 07:02:03 +00:00
|
|
|
class InputHandler;
|
2001-11-03 10:52:42 +00:00
|
|
|
class RageInput
|
|
|
|
|
{
|
2003-02-16 02:25:22 +00:00
|
|
|
vector<InputHandler *> Devices;
|
2002-08-20 22:51:12 +00:00
|
|
|
|
2001-11-03 10:52:42 +00:00
|
|
|
public:
|
2002-11-29 20:37:12 +00:00
|
|
|
RageInput();
|
2001-11-03 10:52:42 +00:00
|
|
|
~RageInput();
|
|
|
|
|
|
2002-11-29 20:37:12 +00:00
|
|
|
void Update( float fDeltaTime );
|
2003-05-28 02:35:05 +00:00
|
|
|
void GetDevicesAndDescriptions(vector<InputDevice>& vDevicesOut, vector<CString>& vDescriptionsOut);
|
2003-06-18 05:43:12 +00:00
|
|
|
void WindowReset();
|
2002-08-20 22:51:12 +00:00
|
|
|
};
|
2001-11-03 10:52:42 +00:00
|
|
|
|
2002-05-19 01:59:48 +00:00
|
|
|
extern RageInput* INPUTMAN; // global and accessable from anywhere in our program
|
2002-11-11 04:53:31 +00:00
|
|
|
|
2002-11-16 08:07:38 +00:00
|
|
|
#endif
|
2003-02-15 18:49:18 +00:00
|
|
|
/*
|
2003-02-16 01:35:48 +00:00
|
|
|
* Copyright (c) 2001-2003 by the person(s) listed below. All rights reserved.
|
2003-02-15 18:49:18 +00:00
|
|
|
* Chris Danford
|
|
|
|
|
* Glenn Maynard
|
|
|
|
|
*/
|