HoverRace  2.0
ControlPrefsPage.h
Go to the documentation of this file.
1 #ifdef HR_LEGACY_BUILD
2 
3 // ControlPrefsPage.h
4 // Header for the "Controls" preferences page.
5 //
6 // Copyright (c) 2009 Michael Imamura.
7 //
8 // Licensed under GrokkSoft HoverRace SourceCode License v1.0(the "License");
9 // you may not use this file except in compliance with the License.
10 //
11 // A copy of the license should have been attached to the package from which
12 // you have taken this file. If you can not find the license you can not use
13 // this file.
14 //
15 //
16 // The author makes no representations about the suitability of
17 // this software for any purpose. It is provided "as is" "AS IS",
18 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
19 // implied.
20 //
21 // See the License for the specific language governing permissions
22 // and limitations under the License.
23 //
24 
25 #pragma once
26 
27 #include "PrefsPage.h"
28 
29 namespace HoverRace {
30 namespace Client {
31 
32 class GameDirector;
33 
34 class ControlPrefsPage : public PrefsPage
35 {
36  typedef PrefsPage SUPER;
37  public:
38  ControlPrefsPage(GameDirector *app);
39  virtual ~ControlPrefsPage();
40 
41  private:
42  void UpdateBindingLabels(HWND pWindow);
43 
44  protected:
45  virtual BOOL DlgProc(HWND pWindow, UINT message, WPARAM wparam, LPARAM lparam);
46  LRESULT PressKeyDialogProc(HWND pWindow, UINT pMsgId, WPARAM pWParam, LPARAM pLParam);
47  static LRESULT CALLBACK PressKeyDialogFunc(HWND pWindow, UINT pMsgId, WPARAM pWParam, LPARAM pLParam);
48 
49  private:
50  GameDirector *app;
51  int setControlHash;
52  std::string setControlMap;
53  HWND pressAnyKeyDialog;
54  HWND preferencesDialog;
55 };
56 
57 } // namespace Client
58 } // namespace HoverRace
59 #endif
Definition: Announcement.h:24