The SceneGraph architecture supports depends on remote control key focus. At any time, any node in the SceneGraph node tree can be assigned the remote key focus. Focus on a node is the most important thing, whenever focus is set on one node, the other one item's focus automatically gets lost. But to bring focus we have to use some methods and to shift focus from the user end we have to play with remote control key events.
Function OnKeyEvent(key, press) as Boolean
result = false
if press then
? ">>> Browse >> OnkeyEvent"
if key = "options"
' option key handler
else if key = "back"
? "back key pressed"
else if key = "up"
? "up key pressed"
else if key = "down"
? "down key pressed"
else if key = "left"
? "left key pressed"
else if key = "right"
? "right key pressed"
end if
end if
return result
End Function
More From Oodles
Ready to innovate? Let's get in touch
Cookies are important to the proper functioning of a site. To improve your experience, we use cookies to remember log-in details and provide secure log-in, collect statistics to optimize site functionality, and deliver content tailored to your interests. Click Agree and Proceed to accept cookies and go directly to the site or click on View Cookie Settings to see detailed descriptions of the types of cookies and choose whether to accept certain cookies while on the site.
About Author
Rahul Baboria
Rahul Baboria is having good knowledge over Android Application.