Skip to content

Commit 6381006

Browse files
Kingminer7kingminer7hiimjasmine00
authored
Changes for iOS keyboard support (#1290)
* Changes for iOS keyboard support * Add CCIMEDispatcher implementation for iOS --------- Co-authored-by: kingminer7 <km7@km7dev.me> Co-authored-by: Jasmine <52604018+hiimjasmine00@users.noreply.github.com>
1 parent 0517361 commit 6381006

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

bindings/2.2081/Cocos2d.bro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1687,7 +1687,7 @@ class cocos2d::CCIMEDispatcher {
16871687
CCIMEDispatcher();
16881688
~CCIMEDispatcher();
16891689

1690-
static cocos2d::CCIMEDispatcher* sharedDispatcher() = imac 0x4bbd10, m1 0x41bf40;
1690+
static cocos2d::CCIMEDispatcher* sharedDispatcher() = imac 0x4bbd10, m1 0x41bf40, ios 0x1d3858;
16911691

16921692
void addDelegate(cocos2d::CCIMEDelegate*);
16931693
bool attachDelegateWithIME(cocos2d::CCIMEDelegate*);

bindings/2.2081/inline/CCIMEDispatcher.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,14 @@
88
#endif
99

1010
#if defined(GEODE_IS_IOS)
11+
class cocos2d::CCIMEDispatcher::Impl {
12+
public:
13+
std::list<CCIMEDelegate*> m_DelegateList;
14+
CCIMEDelegate* m_DelegateWithIme;
15+
};
16+
17+
bool cocos2d::CCIMEDispatcher::hasDelegate() {
18+
return m_pImpl->m_DelegateWithIme != nullptr;
19+
}
1120
#endif
1221

0 commit comments

Comments
 (0)