We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
Add CCEGLView::EventHandler class and window group id for CCEGLView
Add CCEGLView::EventHandler class and window group id for CCEGLView
Feature #1015 [Closed]
- Project changed from cocos2d-x to cpp
- Category deleted (
10) - Target version deleted (
cocos2d-1.0.1-x-0.13.0-beta)
Status: | Closed | |
---|---|---|
Start date: | 2012-03-06 | |
Priority: | Normal | |
Due date: | ||
Assignee: | dumganhar | |
% Done: | 100% |
|
Category: | - | |
Target version: | - |
Refer to: https://github.com/cocos2d/cocos2d-x/pull/730
We’ve released first version of our game to Blackberry Appworld and now going to integrate inapp purchases and scoreloop. This require some work with event handling which occurs inside CCEGLView.
I’ve added CCEGLView::EventHandler class and for qnx-version. Now i can inherit Application from and have possibility catch nessesary events and dispatch in appropriate managers. If event handled HandleBSPEvent must return true to indicate that this event must be skipped in main event handling loop.
Also added screen_create_window_group call to window initialization and getter for group id. This is necessary for work with payment service and may be something else.
Example of use:
paymentservice_purchase_request(digital_good_id, digital_good_sku, digital_good_name,
metadata, purchase_app_name, purchase_app_icon, CCEGLView::sharedOpenGLView().getWindowGroupId(),
&request_id)