Cross-platform SDK and HTML5 tools for mobile app development
X
 

Is PointerListener deliberately an inaccesible base of Scree

3 posts / 0 new
Last post
javelin
javelin's picture
Offline
Mobile Conjurer
Joined: 14 Sep 2009
Posts:
Is PointerListener deliberately an inaccesible base of Scree

I made a sort of overlay manager in my app so I could generally show overlays as prompts or notification messages easily. One requirement, for obvious reasons, is to temporarily remove the current screen as an active KeyListener and PointerListener from the Environment so that all key and pointer input goes to the overlay, mimicking a sort of dialog box. It can be done fine with KeyListener but not with the PointerListener because, digging through the headers I found:

{syntaxhighlighter brush: cpp;fontsize: 100; first-line: 1; }class Screen : public KeyListener, PointerListener { /* . . . */ };{/syntaxhighlighter}

Thus making PointerListener an inaccessible base of Screen according to the compiler. Is this somehow deliberate or maybe just a subtle mistake? Can we turn this into:

{syntaxhighlighter brush: cpp;fontsize: 100; first-line: 1; }class Screen : public KeyListener, public PointerListener { /* . . . */ };{/syntaxhighlighter}

in the next builds or so?

Anyway, it's not that important for now. I just wondered.

- Mark

javelin
javelin's picture
Offline
Mobile Conjurer
Joined: 14 Sep 2009
Posts:
Re: Is PointerListener deliberately an inaccesible base of Scree

Cool thanks! :D

Alex Jonsson
alexj's picture
Offline
Mobile Conjurer
Joined: 8 Sep 2009
Posts:
Re: Is PointerListener deliberately an inaccesible base of Scree

Thanks,

It's a typo, I'll put it as a bug on the Issue Tracker
https://github.com/MoSync/MoSync

best

Alex

Login or register to post comments