Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GameDevWeek
Sommersemester 2015
Cpp
Deth Buff Arr
Commits
3e51b91c
Commit
3e51b91c
authored
Oct 06, 2015
by
Benjamin 'Albsi' Albsmeier
Browse files
now again with key down
parent
71cf3b6d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/input/input.cpp
View file @
3e51b91c
...
...
@@ -521,9 +521,7 @@ namespace gdw{
}
int
input
::
isKeyDown
(
SDL_Keycode
key
){
auto
it
=
keyMap_
.
find
(
SDL_GetScancodeFromKey
(
key
));
if
(
it
!=
keyMap_
.
end
())
return
keyMap_
.
at
(
it
->
first
);
return
0
;
return
keyState_
[
SDL_GetScancodeFromKey
(
key
)];
}
int
input
::
isKeyDown
(
inputMapping
key
){
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment