• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#objective-cqt誰得cocoawindowspythonrubyphpgameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwittertestdombtronvb.netdirectxarduinopreviewerゲームエンジン

Commit MetaInfo

Révisiond03b50a77c78d57aebefd29ba7b4c4e0fff5629b (tree)
l'heure2012-11-18 23:55:42
Auteurshom5xg <shom@.(no...>
Commitershom5xg

Message de Log

Fix to judge the keyboard input

Change Summary

Modification

--- a/core/src/core/input/input_keyboard.h
+++ b/core/src/core/input/input_keyboard.h
@@ -25,9 +25,9 @@ public:
2525
2626 void Update();
2727
28- b32 IsPush( u32 in_key ) const { return ( GetPush( in_key ) != 0 ); }
29- b32 IsPull( u32 in_key ) const { return ( GetPull( in_key ) != 0 ); }
30- b32 IsPushing( u32 in_key ) const { return ( GetPushing( in_key ) != 0 ); }
28+ b32 IsPush( u32 in_key ) const { return ( GetPush( in_key ) == in_key ); }
29+ b32 IsPull( u32 in_key ) const { return ( GetPull( in_key ) == in_key ); }
30+ b32 IsPushing( u32 in_key ) const { return ( GetPushing( in_key ) == in_key ); }
3131
3232 u32 GetPush( u32 in_key ) const;
3333 u32 GetPull( u32 in_key ) const;