/usr/include/crystalspace-2.0/csutil/evoutlet.h is in libcrystalspace-dev 2.0+dfsg-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | /*
Crystal Space event outlet class
Written by Andrew Zabolotny <bit@eltech.ru>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef __CS_UTIL_EVOUTLET_H__
#define __CS_UTIL_EVOUTLET_H__
/**\file
* Implementation for iEventOutlet
*/
#include "csextern.h"
#include "csutil/csunicode.h"
#include "csutil/scf_implementation.h"
#include "csutil/weakref.h"
#include "iutil/event.h"
#include "iutil/csinput.h"
struct iObjectRegistry;
class csEventQueue;
/**
* A class which implements the iEventOutlet interface.
*/
class CS_CRYSTALSPACE_EXPORT csEventOutlet :
public scfImplementation1<csEventOutlet, iEventOutlet>
{
private:
/// The event plug object
iEventPlug *Plug;
/// The owning event queue
csWeakRef<csEventQueue> Queue;
/// The shared-object registry.
iObjectRegistry* Registry;
/// The shared keyboard driver.
csRef<iKeyboardDriver> KeyboardDriver;
/// The shared mouse driver.
csRef<iMouseDriver> MouseDriver;
/// The shared joystick driver.
csRef<iJoystickDriver> JoystickDriver;
iKeyboardDriver* GetKeyboardDriver();
iMouseDriver* GetMouseDriver();
iJoystickDriver* GetJoystickDriver();
public:
/// Initialize the outlet
csEventOutlet (iEventPlug*, csEventQueue*, iObjectRegistry*);
/// Destroy the outlet
virtual ~csEventOutlet ();
/// Create a event object on behalf of the system driver.
virtual csPtr<iEvent> CreateEvent ();
/// Put a previously created event into system event queue.
virtual void Post (iEvent*);
/// Put a keyboard event into event queue.
virtual void Key (utf32_char codeRaw, utf32_char codeCooked, bool iDown,
bool autorep = false);
/// Put a mouse event into event queue (old interface)
virtual void Mouse (int iButton, bool iDown, int x, int y);
/// Put a mouse event into event queue (new interface)
virtual void Mouse (uint iNumber, int iButton, bool iDown,
const int32 *axes, uint numAxes);
/// Put a joystick event into event queue.
virtual void Joystick (uint iNumber, int iButton, bool iDown,
const int32 *axes, uint numAxes);
/// Put a broadcast event into event queue.
virtual void Broadcast (csEventID iName, intptr_t iInfo);
/// Broadcast a event to all plugins
virtual void ImmediateBroadcast (csEventID iName, intptr_t iInfo);
};
#endif // __CS_UTIL_EVOUTLET_H__
|