Mirai-Team / mirai-project

C++ library for games making purposes.
Other
3 stars 0 forks source link

Add an InputManager system #33

Closed Lomadriel closed 9 years ago

Lomadriel commented 9 years ago
Lomadriel commented 9 years ago

Mouse and Keyboard manager done.

Lomadriel commented 9 years ago

The last point is almost done. But I have to create a way for key pressed.

CBenoit commented 9 years ago

Just create a member boolean called "isPressed" in Binding class, if 'isPressed' is false you can call the function for the on key pressed mode just before set "isPressed" to true. When you set again "isPressed" to false, you can call the function for the on key released mode. If none of theses modes are selected. Just do as usual, always call the function.

Lomadriel commented 9 years ago

This is what I did. ^^

It was something else but It's corrected now.

CBenoit commented 9 years ago

I checked it, everything alright ! :) Just had to update some things in the in-code documentation.