James Chen
|
f3949e078b
|
[EventDispatcher] Adds 'pauseEventListenersForTarget', 'resumeEventListenersForTarget' and 'removeEventListenersForTarget'.
|
2014-03-02 17:41:18 +08:00 |
James Chen
|
30d7130eb0
|
closed #4160: Out of range exception in EventDispatcher
|
2014-03-02 16:16:03 +08:00 |
James Chen
|
7774bb4c6c
|
closed #4129: Event listeners in engine shouldn't be removed by method removeAllEventListeners().
|
2014-02-28 15:09:53 +08:00 |
James Chen
|
658cf72d31
|
issue #4129: Uses 'const reference' when getting touches by EventTouch::getTouches.
|
2014-02-28 13:43:28 +08:00 |
James Chen
|
8a04fbabf1
|
issue #4129: EventDispatcher::_listeners -> _listenerMap.
|
2014-02-28 12:01:47 +08:00 |
James Chen
|
9a02568eca
|
Some case sensitivity fixes in EventDispatcher. e.g. xxxlisteners -> xxxListeners.
|
2014-02-10 11:15:56 +08:00 |
James Chen
|
8141397bbd
|
closed #3871: event->stopPropagation can't work for EventListenerAllAtOnce. And add relevant test case.
|
2014-01-27 16:30:20 +08:00 |
Ricardo Quesada
|
94ea94a113
|
global Z order uses floats
|
2014-01-21 16:36:19 -08:00 |
Ricardo Quesada
|
7a8707cb08
|
Merge branch 'develop' into local_z_Order_fixes
Conflicts:
cocos/2d/CCNode.cpp
cocos/2d/CCNode.h
|
2014-01-21 10:10:50 -08:00 |
James Chen
|
0f9c3fa59c
|
closed #3789: EventDispatcher supports sorting listeners by global Z and local Z order. And adds relevant test case.
|
2014-01-21 10:23:05 +08:00 |
James Chen
|
9f793f8a9b
|
Warning fixes: 1) getZOrder —> getLocalZOrder. 2) long —> int
|
2014-01-20 15:03:30 +08:00 |
James Chen
|
0468a1234b
|
A typo fix in EventDispatcher, DirtyFlag::FIXED_PRITORY —> DirtyFlag::FIXED_PRIORITY.
|
2014-01-20 14:22:30 +08:00 |
walzer
|
64af0de648
|
update copyrights for 2014, in cocos/2d/ folder
|
2014-01-07 11:25:07 +08:00 |
James Chen
|
0082cf3e4d
|
closed #3579: TestLua->BugsTest->bug914 crashes if clicking 'reset' button all the time.
|
2014-01-04 10:28:09 +08:00 |
James Chen
|
05b1be3aeb
|
Fixes two memory leaks in EventDispatcher::removeEventListener(removeEventListeners).
|
2014-01-02 19:59:10 +08:00 |
James Chen
|
febc19ea8d
|
Some warning fixes on linux.
|
2013-12-26 23:06:16 -08:00 |
Ricardo Quesada
|
49903ea779
|
Director emits events after visit, after draw and after update. And when the projection changes
Adds helper functions on EventDispatcher
Adds test in NewEventDispatcherTest
|
2013-12-21 10:55:16 -08:00 |
Ricardo Quesada
|
eea2e70d1e
|
Adds events in director
|
2013-12-21 00:56:28 -08:00 |
James Chen
|
3d76281617
|
Removes an unused assert.
|
2013-12-20 19:49:25 +08:00 |
James Chen
|
5852c66e5a
|
closed #3463: ListenerID is std::string now. To avoid hash collision when using lots of EventCustoms.
|
2013-12-20 19:47:11 +08:00 |
minggo
|
fa7c97171b
|
fix some warnings
|
2013-12-06 16:32:06 +08:00 |
minggo
|
b67d567a79
|
replace long with int or ssize_t
|
2013-12-05 17:22:22 +08:00 |
James Chen
|
499a0404d4
|
issue #2790: Renames some functions in Vector<T>. Makes it more like stl vector.
|
2013-12-05 10:35:10 +08:00 |
James Chen
|
9928e8bef1
|
issue #2790: Uses Vector<T>::getObjectAtIndex instead of Vector<T>[] operator to avoid some mistakes.
|
2013-12-04 16:01:55 +08:00 |
James Chen
|
8aef092005
|
issue #2790: TestCpp with new Vector<>.
|
2013-12-04 16:01:54 +08:00 |
James Chen
|
d4d864216b
|
issue #2790: Deletes Vector::init, adds Vector::setCapacity.
|
2013-12-04 16:00:18 +08:00 |
James Chen
|
90062b656d
|
issue #2790: Node::_children is Vector<Node*> now.
|
2013-12-04 16:00:17 +08:00 |
James Chen
|
424431690a
|
Fixing warning generated by VS2012.
|
2013-11-20 10:39:30 +08:00 |
James Chen
|
fd21e3ea38
|
closed #3106: fixed: EventListeners can't be removed sometimes.
|
2013-11-02 22:08:08 +08:00 |
James Chen
|
a4b28353a7
|
Merge commit 'refs/pull/4069/head' of git://github.com/cocos2d/cocos2d-x into eventdispatcher-fix
|
2013-11-02 21:47:24 +08:00 |
psi
|
06f166f613
|
why not search _toAddedListeners??
|
2013-11-02 16:03:54 +09:00 |
Nite Luo
|
fe04448c8d
|
Merge folder changes from develop
|
2013-10-30 23:19:36 -07:00 |
James Chen
|
296978a9be
|
issue #3069: Separate 'EventDispatcher::removeEventListeners' to 'removeEventListeners' and 'removeCustomEventListeners'.
|
2013-10-29 14:57:16 +08:00 |
James Chen
|
8b7d1934c8
|
issue #3069: Using enum class for define Event type and EventListener type.
|
2013-10-28 16:00:01 +08:00 |
James Chen
|
48ce5e39fe
|
EventDispatcher is managed by Director now, like Scheduler and ActionManager.
|
2013-10-26 15:04:01 +08:00 |
James Chen
|
6c6757a04e
|
issue #3069: Moving s_eventPriorityIndex to member variable of EventDispatcher.
|
2013-10-25 17:03:50 +08:00 |
James Chen
|
9bf44a6c83
|
issue #3069: Renaming 'removeListeners' to 'removeEventListeners'.
|
2013-10-25 16:34:26 +08:00 |
James Chen
|
27b71ba73c
|
Use integer as event type and listener type.
|
2013-10-25 10:53:47 +08:00 |
James Chen
|
c4f9acbee7
|
disable DUMP_LISTENER_ITEM_PRIORITY_INFO. use std::unordered_map instead of std::map.
|
2013-10-25 10:53:47 +08:00 |
James Chen
|
dc6e201eb6
|
bug fix for eventdispatcher.
|
2013-10-25 10:53:46 +08:00 |
James Chen
|
5ecb664a58
|
crash and memory leak fix.
|
2013-10-25 10:53:46 +08:00 |
James Chen
|
aeef62d893
|
bug fix for EventDispatcher.
|
2013-10-25 10:53:46 +08:00 |
James Chen
|
e59c49a5e3
|
fix crash.
|
2013-10-25 10:53:46 +08:00 |
James Chen
|
6f9bee5b1a
|
bug fix in EventDispatcher.
|
2013-10-25 10:53:46 +08:00 |
James Chen
|
9ed263056c
|
Use eventDispatcher to dispatch event. Remove controller codes in Layer.
|
2013-10-25 10:53:46 +08:00 |
James Chen
|
1f3863e787
|
Event Dispatcher refactor commit. TestCpp could run.
|
2013-10-25 10:53:45 +08:00 |
James Chen
|
f7e2c63230
|
Refactor event dispatcher. Remove non-node relative member variables.
|
2013-10-25 10:53:45 +08:00 |
James Chen
|
779e539658
|
Remove event controller codes from Layer class. HelloCpp works.
|
2013-10-25 10:53:45 +08:00 |
minggo
|
95acb1b9e3
|
issue #2905: helloworld build ok on android
|
2013-10-14 14:01:00 +08:00 |
minggo
|
49d7bbd600
|
issue #2905: remove sub folders except platform
|
2013-10-12 15:41:45 +08:00 |