Kobold2dのKKTouchPhaseのまとめメモです。
以下、Kobold2dのリファレンスから。
http://www.learn-cocos2d.com/api-ref/KoboldTouch/6.0/Kobold2D/html/_k_k_input_enums_8h.html
A touch can have just began, it can be moving, or it can be ended this frame. The kKKTouchPhaseAny can be used if want to include all three phases in a touch test. The KKTouchPhase enum values are equal to those in the UITouchPhase enum (except for any and lifted), that means they can be used interchangeably.
- Enumerator:
KKTouchPhaseBegan | touch began this frame |
KKTouchPhaseMoved | touch has moved this frame |
KKTouchPhaseStationary | touch didn't move this frame(このフレームでは何もしなかった、というphase) |
KKTouchPhaseEnded | touch ended this frame |
KKTouchPhaseCancelled | touch was cancelled (ie incoming call, incoming SMS, etc) this frame (着信などでキャンセルがあったフレーム) |
KKTouchPhaseAny | used for certain tests to disregard the phase of the touch (どんなphaseでも) |
KKTouchPhaseLifted | a touch is "lifted" if it is no longer associated with a finger on the screen (すでに指が離れている) |
0 件のコメント:
コメントを投稿