Pie Noon
An open source project by FPL.
 All Classes Pages
cardboard_controller.h
1 // Copyright 2015 Google Inc. All rights reserved.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 #ifndef CARDBOARD_CONTROLLER_H_
16 #define CARDBOARD_CONTROLLER_H_
17 
18 #include "controller.h"
19 #include "fplbase/input.h"
20 #include "game_state.h"
21 #include "precompiled.h"
22 
23 namespace fpl {
24 namespace pie_noon {
25 
27  public:
29 
30  void Initialize(GameState* game_state, fplbase::InputSystem* input_system);
31 
32  virtual void AdvanceFrame(WorldTime delta_time);
33 
34  private:
35  GameState* game_state_; // Pointer to the gamestate object
36  // A pointer to the object to query for the current input state.
37  fplbase::InputSystem* input_system_;
38 };
39 
40 } // pie_noon
41 } // fpl
42 
43 #endif // CARDBOARD_CONTROLLER_H_
Definition: game_state.h:56
Definition: cardboard_controller.h:26
Definition: controller.h:26