In iOS, one doesn't need to add a close icon for an app. In the rare event that one wants to kill an app they can do it via the OS.
When looking at the cocos2d-x project that is created by default when using the console (v3.1.1), the sample HelloWorld scene places a button on screen to "close" the app.
Is this actually required in ANY platform ? Does it make sense to add this button at all ?
Apple usually rejects on this and Google and Microsoft don't like it.
You can, however, have close buttons on menus or popovers (say, like a pause screen).
Related
I have been using Clojure, ClojureScript, lein, shadow-cljs, re-frame, reagent, Emacs, and CIDER to work on a Clojure/ClojureScript dynamic web app project.
Usually, I build the project by executing the command cider-jack-in-cljs in Emacs, choosing shadow-cljs, then shadow for REPL type, and, finally, app for the building option.
The application loads in localhost:3005 with a debugging dashboard. Apparently, this UI is called "re-frame-10x":
After clicking on the up-right arrow icon on the top-right:
I managed to pop out the debugging dashboard into a new window in Google Chrome. It was injecting some CSS and hiding a button on the webpage. Hence, I decided to "remove it" by popping-it out.
But, I would like to move it back to the browser tab that has localhost on the address. How to do it?
As suggested by #eugene-pakhomov, it was just closing that window. I must highlight that I had tried that before, the only problem was that there were multiple windows of that type. And all of them need to be closed for the process to work!
Not sure why the program opens multiple windows...
Is there a way to change the keyboard so it have a "enter" or "go" button in android like in chrome browser in android, when you are writting a url it shows a "go" button.
If so how to show it? and how to handle it?
I have researched but I ran out of words because my english is limited, and couldn't find anything.
Thanks.
LibGDX doesn't support this feature. If you want to implement it, you would have to fork LibGDX and modify AndroidOnscreenKeyboard, specifically the IME options that are placed on its TextView. Or you could submit a PR to add this as a configurable option.
Look here for android keyboard handling. it has everything you need including keyboard types.
And also look here for android specific code usage in libgdx.
It's relatively straightforward to detect some button presses on the tvOS Siri Remote: the pause/play button, the touchpad area, and with marginally more effort, the MENU button. But there seems to be no way detect or override the function of the + and - buttons, or the Siri or home buttons.
Or is there?
Currently the + and - (volume) buttons on the Siri remote are accessed through private functions. These can't be overwritten or detected, as they have a reserved function. The same goes for the home button.
There are a couple of points that support this claim. First, as the OP noted, there are no events that detect any actions related to the volume buttons. They don't trigger the pressesBegan or similar events either.
Another good place to look for more options with the remote/controller is GCGameController. It looks like it has functionality related to all, but the volume buttons, which are reserved. Take a look at the
Using the Apple TV Remote as a Game Controller section here. It mentions all of the buttons on the remote that can be used in a CGGameController.
As I mention in my other posts, this is a fairly new OS and not everything is available yet. You can always file a bug report with Apple and request certain API to be made public.
After I set up my new project with libGDX v1.3.1 i am stuck with something that should be easy. In my main class which extends game I have:
Gdx.input.setCatchBackKey(true);
but I cannot get any response from this (in render method):
if(Gdx.input.isButtonPressed(Keys.BACK)){
this.dispose();
}
It like nothing was pressed, although I can see that the button was pressed in logCat console.
I need to mention that I was using the exact same code until libGDX version 1.0.0 (or the first one with gradle).
Note: i have also tried implementing InputProcessor and then setting the input processor. Result was the same.
And for the home button: using Gdx.input.setCatchMenuKey(true); is not working.
Use isKeyPressed instead of isButtonPressed. Buttons only refers to the three mouse buttons on a desktop game. Everything on Android is a Key (or Peripheral).
You mentioned "home button" but the code you posted is for the menu button. There is no way to catch the home button unless you make your manifest declare your app as a launcher replacement, in which case, the home button will always open your app, even when it's closed, and the user will have no easy way to get to the home screen. And libgdx doesn't have that functionality built in, since that would be weird. You would have to implement it yourself in your manifest and main Activity.
Also, disposing of this, whatever this is, sounds dangerous to do from the input handler. You could be about to render stuff and cause a crash. But I'm not sure where you're trying to use it from. Maybe it's OK.
I'm working on a WP8 app that will utilize the camera for a feature. I've read that, as of GDR2, you can now change which app opens with the camera button, but:
it appears that an app needs to be specially written to be used like
this; not every photo or camera app can be configured to launch when
you press the Camera button.
Question: What do I need to do in my app for it to become an available option in the "Pressing the camera button opens: " drop down when navigating to Settings -> Applications -> photos + camera?
Additionally, part 2 of this question would be (if part 1 is possible), when the application is launching, can I determine if the user opened it via the camera button (so that I could go straight to my camera feature)?
I've seen this article but it only describes how to use and handle the shutter button, it doesn't mention how to allow this button to open the app.
Has anyone been able to accomplish this?
This thread (http://forums.wpcentral.com/windows-phone-8/234751-changing-default-camera-app.html) seems to suggest that only manufacturers can create apps that can do this. Not sure if it's definite, but I've never heard of a 3rd party camera app that can do more than register as a lens.