1 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
2 // Copyright (C) 2010 Winch Gate Property Limited
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Affero General Public License as
6 // published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Affero General Public License for more details.
14 // You should have received a copy of the GNU Affero General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
26 #include "nel/3d/u_driver.h"
28 #include "actions_client.h"
29 #include "interface_v3/input_handler_manager.h"
38 using namespace NLMISC
;
45 extern UDriver
*Driver
;
51 CActionsContext ActionsContext
; // Register action managers
52 CActionsManager Actions
; // Default actions Manager
53 CEventsListener EventsListener
; // Inputs Manager
55 //-----------------------------------------------
57 // Initialize Actions.
58 //-----------------------------------------------
61 /* Add the Actions listener to the Interface Manager Events Server, NOT TO THE DRIVER
62 This is because the interfaceManager filter the events
64 CInputHandlerManager
*pIH
= CInputHandlerManager::getInstance();
65 EventsListener
.addToServer(pIH
->FilteredEventServer
);
70 /* Add the Actions listener to the Interface Manager Events Server, NOT TO THE DRIVER
71 This is because the interfaceManager filter the events
73 CInputHandlerManager
*pIH
= CInputHandlerManager::getInstance();
74 EventsListener
.removeFromServer(pIH
->FilteredEventServer
);