Antkeeper
0.0.1
|
#include "game/controls.hpp"
#include "game/graphics.hpp"
#include "game/menu.hpp"
#include "game/control-profile.hpp"
#include "game/states/pause-menu-state.hpp"
#include <engine/resources/resource-manager.hpp>
#include <engine/utility/json.hpp>
#include <engine/input/modifier-key.hpp>
#include <engine/utility/hash/fnv1a.hpp>
Go to the source code of this file.
Functions | |
void | reset_control_profile (::control_profile &profile) |
Resets a control profile to default settings. More... | |
void | apply_control_profile (::game &ctx, const ::control_profile &profile) |
Applies a control profile to the game context. More... | |
void | update_control_profile (::game &ctx, ::control_profile &profile) |
Updates a control profile after actions have been remapped. More... | |
void | setup_game_controls (::game &ctx) |
void | enable_game_controls (::game &ctx) |
void | disable_game_controls (::game &ctx) |
void apply_control_profile | ( | ::game & | ctx, |
const ::control_profile & | profile | ||
) |
Applies a control profile to the game context.
ctx | Game context. |
profile | Control profile to apply. |
Definition at line 193 of file controls.cpp.
void disable_game_controls | ( | ::game & | ctx | ) |
Definition at line 417 of file controls.cpp.
void enable_game_controls | ( | ::game & | ctx | ) |
Definition at line 412 of file controls.cpp.
void reset_control_profile | ( | ::control_profile & | profile | ) |
Resets a control profile to default settings.
profile | Control profile to reset. |
Definition at line 31 of file controls.cpp.
void setup_game_controls | ( | ::game & | ctx | ) |
Definition at line 376 of file controls.cpp.
void update_control_profile | ( | ::game & | ctx, |
::control_profile & | profile | ||
) |
Updates a control profile after actions have been remapped.
ctx | Game context. |
profile | Control profile to update. |
Definition at line 273 of file controls.cpp.