Addons apps to current firmware

Here for general support for B series TVs, request and problem solve area.

arris69
Official SamyGO Developer
Posts: 1700
Joined: Fri Oct 02, 2009 8:52 am
Location: Austria/Vienna (no Kangaroos here)
Contact:

Re: Addons apps to current firmware

Post by arris69 »

aquadran wrote:
cus1 wrote:The available keycodes are also in the SDL source that comes with 32B650.ZIP in the SDL/src/video/dummy/SDL_nullevents.c file.
It's not true
strange, then

Code: Select all

 if(event.key.keysym.sym == SDLK_ESCAPE){
                                                out = 1;
                                                continue;
                                        }
triggers if you press the blue key.

just my 2?
arris
aquadran
Posts: 264
Joined: Fri Oct 16, 2009 9:35 pm
Location: Poland

Re: Addons apps to current firmware

Post by aquadran »

yes, that key works, but only few of them. I wrote that in post earlier.
http://forum.samygo.tv/viewtopic.php?f= ... rt=50#p545
It seems I'm wasting my time with share information.
arris69
Official SamyGO Developer
Posts: 1700
Joined: Fri Oct 02, 2009 8:52 am
Location: Austria/Vienna (no Kangaroos here)
Contact:

Re: Addons apps to current firmware

Post by arris69 »

aquadran wrote:yes, that key works, but only few of them. I wrote that in post earlier.
http://forum.samygo.tv/viewtopic.php?f= ... rt=50#p545
It seems I'm wasting my time with share information.
no you don't waste your time, but don't be like a little child!

the keysyms that we can handle in an sdl shared object are defined/translated in SDL_nullevents.c

the others (exit etc...) seems to be handled by exeDSP
but in fact SDLK_ => F3 (pause/play etc.) also won't came into the eventqueue (but don't crash if you push them)
(notice: as you already wrote)

dont't forget we just direct init an sdlsurface but the tv has something like a window/menu manager too.

arris
2? again ;)
aquadran
Posts: 264
Joined: Fri Oct 16, 2009 9:35 pm
Location: Poland

Re: Addons apps to current firmware

Post by aquadran »

arris69 wrote:
aquadran wrote:yes, that key works, but only few of them. I wrote that in post earlier.
http://forum.samygo.tv/viewtopic.php?f= ... rt=50#p545
It seems I'm wasting my time with share information.
no you don't waste your time, but don't be like a little child!

the keysyms that we can handle in an sdl shared object are defined/translated in SDL_nullevents.c

the others (exit etc...) seems to be handled by exeDSP
but in fact SDLK_ => F3 (pause/play etc.) also won't came into the eventqueue (but don't crash if you push them)
(notice: as you already wrote)

dont't forget we just direct init an sdlsurface but the tv has something like a window/menu manager too.
Yes, it is a bit waste my time if I must repeat myself.
I know what is in SDL sources, I did comment that on begining in this thread.
It turn out later, that half of things are simply not work as suppose by guessing from sources.
I case buttons, situation looks like exeDSP "disconnect" events when you exit from Content Library/Manager.
And that list of buttons I post earlier. So even SDL sources has code to translate keys, but that is pointless as they never reach to sdl.
We are also not sure if all keycodes are correct as we can't verify them.
arris69
Official SamyGO Developer
Posts: 1700
Joined: Fri Oct 02, 2009 8:52 am
Location: Austria/Vienna (no Kangaroos here)
Contact:

Re: Addons apps to current firmware

Post by arris69 »

aquadran wrote:....
btw.
you can try catch crashing due unhandled buttons

Code: Select all

int Game_Main(const char *path, const char *udn){
... init code
while(!out)
        {
                while(SDL_PollEvent(&event))
                        {
                                 switch (event.type)
                                        {
                                case SDL_QUIT:
                                        out = 1;
                                        break;
                                case SDL_KEYDOWN:
                                        if(event.key.keysym.sym == SDLK_POWER){ /* exeDSP want tell us something? */
                                                out = 1;
                                                SDL_VideoQuit();
                                                continue;
                                        }
break;
... other keyhandling
}
                }
}
        SDL_Quit();
        return 0;
}
after this source and power button acts as normal and content button bring you back to tv

hth
arris
aquadran
Posts: 264
Joined: Fri Oct 16, 2009 9:35 pm
Location: Poland

Re: Addons apps to current firmware

Post by aquadran »

cus1 wrote:
aquadran wrote: Yes, it is a bit waste my time if I must repeat myself.
I know what is in SDL sources, I did comment that on begining in this thread.
It turn out later, that half of things are simply not work as suppose by guessing from sources.
I case buttons, situation looks like exeDSP "disconnect" events when you exit from Content Library/Manager.
And that list of buttons I post earlier. So even SDL sources has code to translate keys, but that is pointless as they never reach to sdl.
We are also not sure if all keycodes are correct as we can't verify them.
I only tried to share information just like you. If you already knew that, no problem, others maybe didn't. I still think it worthed discussing because now I know that some non-crashing keys that are in the SDL source also don't work. People may come up with the same thing the same time independently, so yes, it's possible you will see something here that you've already figured out. For example the SDLK_POWER issue. I won't say that what you said about the crashing is "not true", because the TV does not crash, but sends SDLK_POWER to the app until it quits.
Yes, if people will not read whole thread, then yes, will not known. I didn't said all keys lead to crash, but some, and some exit Content Manager.
It seems I must look again into that. Maybe I missed some keycodes. I remember I expected SDLK_POWER(exit) to be handled, so I'll verify it, and post again.
aquadran
Posts: 264
Joined: Fri Oct 16, 2009 9:35 pm
Location: Poland

Re: Addons apps to current firmware

Post by aquadran »

SDLK_POWER is indeed send but not on that specific button (it might also too, but it's difficult to say as it's the same keycode), anyway SDLK_POWER is send by repeating sequence press/release from exeDSP to tell exit sdl app after press any that "exit like" behaviour buttons.
It's good, it allow handle proper imediately exit. I saw this before but I misunderstand keycode, I thought it was trash after exit as I saw that keycode after every press that "exit like" buttons and I didn't noticed it's SDLK_POWER keycode.

Thanks, for pointing out this keycode.

Post Reply

Return to “[B] Support”