[APP] EMPIO - The Enhanced Multi-Peripheral Input/Output System - Ouya Android Development

Original release thread here over at reddit.
Hey guys. This is a project I've been working on for a while.
EMPIO is an application that allows you to fully remap your controller. At the moment, it supports Ouya and wired/wireless PS3 controllers (tested with sixaxis).
The biggest feature of this app is that it allows you to map your controller to TOUCH SCREEN presses - even though there's no touch screen on the console!
Upon launch, you're greeted with a setup activity that gives you some information about the app. The main screen is a 2x3 grid of the applications you have installed. Pressing U brings up the options menu. Pressing Y brings up a basic file browser to install an apk.
Upon selecting an app to run, it checks your license to determine features and also checks if your console is rooted. If it's not rooted, it asks you to return after rooting it. Then it runs the background service.
I might be able to have it root itself in the future but I'd rather not.
The service gets exclusive control over your controller and loads the map file on the internal storage. Once the map is loaded, it interprets whatever your controller is doing and maps it to whatever you specified.
* Current supported controllers:
1. Ouya
2. PS3 Sixaxis wired/wireless
* Future planned controller support:
1. 360
2. wiimote
3. custom
* Features:
1. Map controller to various things
2. Add cycles - a grid of points you can cycle through
3. Multiple sets - set of mappings, includes cycles and button maps
4. Assign a map to be called when pressing a cycle point
5. Assign a map to be called when selecting/cycling to a point
6. Map analog stick to on screen analog - choose center position, radius, and deadzone. Analog stick moves around the center position, up to the radius and stops when the deadzone is reached
7. Set a variable and then retrieve it later
* Current map types:
1. Button/key
2. Touch
3. Callback
* Future planned map types:
1. drag
2. gesture
3. Macro (touch & button)
The free version will allow only key/touch mappings. ie: map buttons to other buttons or touch screen presses.
The paid version will have an on screen map creation tool, will root the console, and allow all other map types as well as any functions (cycle, cycle callbacks, etc)
Full documentation will be available at reddit/r/empio as I have time to add it.
This app is **BETA** as it is not anywhere near "completion".
**note** this requires you to create the mapping file on your computer first. The on screen mapping tool is not setup yet, however it will be one of the next features.
The paid version of the app is $4.99. I'm a student and it's a ton of work doing this on my own, so even if you don't need the pro version I appreciate donations.
If you have any questions, feel free to post them.
EMPIO Subreddit with information: http://reddit.com/r/empio
APK File: - Temporarily removed due to license bug - IF YOU'RE USING IT, DON'T PAY FOR IT. If you do, I'll refund you - the license does not save correctly.
**PLEASE POST ANY BUGS THAT YOU EXPERIENCE**
Thanks for checking it out! I'll have pictures and a video up soon.

cool
thanks buddy! i cant wait to get home to try this!

jaedolla said:
thanks buddy! i cant wait to get home to try this!
Click to expand...
Click to collapse
Let me know what you think! If you have any problems let me know and I'll help you set it up. Documentation is a little lacking since I've been busy with school, but I'll help anyone out with making map files until I have more time to write stuff up

pspkicks316 said:
Let me know what you think! If you have any problems let me know and I'll help you set it up. Documentation is a little lacking since I've been busy with school, but I'll help anyone out with making map files until I have more time to write stuff up
Click to expand...
Click to collapse
Thanks for this app dude...this is awesome, i currently installed the app on my OUYA then when i start the game app it says "Creating controller mapper" then "Staring controller mapper" after that it says SUPERUSER GRANTED TO EMPIO. when the game starts in the bottom left corner it says CURRENT SET: OUYA but it wont do anything...I was wondering if you can please help me map some buttons or give me some instructions on how to use this tool?

Can it allow to use PS3 controllers on games that only use the OUYA controller?

Some apps have this annoying feature that checks for updates automatically and then won't let you use them even though you paid for them until you update. Is this app like that or will it ever be?

This app don't have many features as it is which is a bummer, but it's a good start :good:. I feel like i have to buy the paid version of this app to see what it can offer but not being able to get the free version working or mapped and haven't seen it working yet and the instruction are not very clear is what keeps me from buying the full paid version...

Pkmns said:
Can it allow to use PS3 controllers on games that only use the OUYA controller?
Click to expand...
Click to collapse
Yes, it will by default map the PS3 controller buttons to the standard Ouya ones, allowing it to be used in ANY app or game. However, depending on how the app/game detects the buttons, some tweaking will be needed to get it fully working.

Asadullah said:
Some apps have this annoying feature that checks for updates automatically and then won't let you use them even though you paid for them until you update. Is this app like that or will it ever be?
Click to expand...
Click to collapse
As of right now, since it's not on any market, it can't do this. With that said, I find this annoying too and won't be adding that.

cronikman84 said:
This app don't have many features as it is which is a bummer, but it's a good start :good:. I feel like i have to buy the paid version of this app to see what it can offer but not being able to get the free version working or mapped and haven't seen it working yet and the instruction are not very clear is what keeps me from buying the full paid version...
Click to expand...
Click to collapse
Actually, there's a ton of features. The mapping system is very extensive as it is. The free version will let you play any basic touch app, but if you need anything more advanced then the pro version is needed. Free is just touch/key mappings.
From what you said, the app is working fine. Once you start it, everything should work the same; all buttons work normally. That's because it's using the default Ouya map. You have to create a map for each specific game. I'm currently working on an on-screen mapping utility, but for now you have to do it manually.
To do this, plug your Ouya into your computer and find your app/game's mapping file in /sdcard/Ouya Mappings/package.name.ini
That .ini file is the map for the game. Each game/app has it's own, based on the package name.
If this file isn't there, enable map file auto-create in the settings.
At first, the file will be blank. You can follow the information HERE to start working on your map.
To get your x/y coordinates, you can take screenshots and then use mspaint to get the coordinates of where you want to touch the screen (if you're doing touch mappings). In mspaint, the bottom left corner has the x,y coordinates of the mouse on the picture. Just put those values into your map file when needed.
Let me know what game you're trying to play and I can help you out a bit more.

pspkicks316 said:
Actually, there's a ton of features. The mapping system is very extensive as it is. The free version will let you play any basic touch app, but if you need anything more advanced then the pro version is needed. Free is just touch/key mappings.
From what you said, the app is working fine. Once you start it, everything should work the same; all buttons work normally. That's because it's using the default Ouya map. You have to create a map for each specific game. I'm currently working on an on-screen mapping utility, but for now you have to do it manually.
To do this, plug your Ouya into your computer and find your app/game's mapping file in /sdcard/Ouya Mappings/package.name.ini
That .ini file is the map for the game. Each game/app has it's own, based on the package name.
If this file isn't there, enable map file auto-create in the settings.
At first, the file will be blank. You can follow the information HERE to start working on your map.
To get your x/y coordinates, you can take screenshots and then use mspaint to get the coordinates of where you want to touch the screen (if you're doing touch mappings). In mspaint, the bottom left corner has the x,y coordinates of the mouse on the picture. Just put those values into your map file when needed.
Let me know what game you're trying to play and I can help you out a bit more.
Click to expand...
Click to collapse
i'm trying to play Gangstar Vegas from gameloft, i also want to buy the full version of the app and give it a try, where can i get it from?

Related

[APP] AudiobookMark [R] 2011-01-13 [V]1.0

Name: AudiobookMark
I was frustrated by the lack of built-in support for mp3-based audiobooks so I wrote this app. It lets you load as many audiobooks as you have memory for. It remembers where you are in each file of each book (and of course, which file you are listening to for each book).
It has standard transport keys plus the ability to enter HH:MM:SS to skip directly to.
Download Link: social.zune.net/redirect?type=phoneApp&id=b1cab14b-e91d-e011-9264-00237de2db9e
Is this a free app?
Its a 0.99 app, with a free trial that basically let's you use it without limitation, but pops up a message box occasionally...
Can you add support for a sleep timer? So you need to shake the phone every 15 mins or it will pause the audio book.
That sounds like a useful addition. Let me think through how best to implement it, and I'll try to add it in with "run under locked screen" update I'm working on...
elmstrom said:
Can you add support for a sleep timer? So you need to shake the phone every 15 mins or it will pause the audio book.
Click to expand...
Click to collapse
I would also really like this.
Hey dbroome, this sounds like it has the potential to be an awesome app. I'm so used to the Mortplayer audiobook app on Android and really enjoy using it (great alternative to music btw).
So by mention of "remembers where you are" you mean bookmarks are automatically placed for us? I ask because a cool feature of the mortplayer app was the bookmark feature where you can tag certain spots on demand and go back to wherever you tagged. I hope you go far with this app, it really does sound promising.
The UI looks good too!
I had not heard of Mortplayer, I'll have to check it out, though I don't have an Android device to be able to get a good look at it.
You are correct in that the app places the bookmark for you. It basically remembers where you were in each file.
How do you use the "tag different places in a file" type feature in your audiobook listening? I generally am just listening to novels, and don't have any real need to jump to various spots in the same file.
The reason I ask is that I'd like to implement features users would use, but don't want to overly complicate it with feature bloat.
As an update, I have implemented and am testing three new features. Once I make sure it is working as expected, I'll submit the update to the marketplace:
1) Configurable port on the loader (8001 might not be convenient for everyone. Should have thought of this before)
2) Run under locked screen. Now you can lock the screen to save battery power
3) Configureable sleep timer (with optional shake to reset).
I hope to submit it in the next day or so...
Thanks / Volume / File Corruption
First I love the app. I have been writing down my numbers until this app came along. Thank you dbroome.
Second, I noticed the volume is weaker than the default music player; has any one else notice this?
Third, I received a file corruption error message saying it couldn't determine the file lengths and displays all .MP3s as being 00:00:00 in running time. The files didn't play, but after a reboot they started too but still display the zero length; anyone have any thoughts?
Thanks!
Also needs skip forward/skip back button that just goes 30 sec back/fprward. The current skip to a location is not usable when driving.
Bonus points for a ui redesign with bigger buttons.
Additional bonus points for a fast play (i.e. play back at 150% speed with no pitch shift).
For me to purchase, I need:
Play under lock screen
Uploader program to work (changing ports might help)
In order to determine the length of the mp3, the player has to actually open the file and then close it. The Zune software interferes with the player opening the file after upload, and as such you have to unplug the phone from the computer after uploading before closing the "I'm done" pop up box. I'm guessing that the 0-length issue might have been due to that. Try deleting that book and re-loading it to the phone, making sure to unplug the phone before continuing (or, alternatively, using the SDK's WPConnect.exe which doesn't interfere with the media being opened).
It might be useful to add a "determine durations" type button on the load screen that would let you try to determine them again at a later time instead of re-loading them. What do you think?
30 second skip could definitely be useful. I'll see if I can find a good way to incorporate it in the next update.
I really want fast play as well. Unfortunately the MediaElement player I have to use to be able to set positions doesn't support it. I'll definitely be watching the updates as they come out for supporting that.
I'm dreadful at UI stuff, but I have a friend who I can probably rope into giving it some love.
Play under lock and the configureable port are in the next update, which I will finish testing and submit tonight...
Cool. Bought it as an encourgement.
For UI ideas look at audiobook player 2. It is much easier to use while driving.
Suggestions
Your [skip to a time] section shouldn't be on the main page, but off a toolbar option.
Your play/pause button should swap between play/pause depending on state rather than changing the background colour.
Use images rather than text in the buttons [|<] [<<] etc
v1.1 has been approved and should show up in the marketplace shortly. This adds a sleep timer (with optional shake to reset), play under lock, and configureable port on the loader and phone.
Next update will hopefully be a ui re-do, possibly adding the "skip xx seconds" idea.
Downloaded the update for the app, re-uploaded the audio book, followed instructions on the pop up (after upload completed) and the software recognized the full lengths. Very nice! Thanks dbroome!! The mp3s seem to have uploaded a little quicker too or is it this just me?
FYI, using a colon within the name of a book crashes the app (at least it does for me).
Good find. I'll correct that.
Waiting on a friend with some design skills. If he doesn't come back to me soon, I'll go looking for free images to include on the buttons and do a general usability re-skin of the ui...
Is this the correct website: http://davidbroome.com/AudiobookMark
I am just getting Bad Request (Invalid Hostname) when I try to goto it. Also the volume seems low on my Samsung Focus. Good work though, I am going to buy it.
Thanks!
The website had a temporary issue and should be resolved.
I'm looking into the lower volume and should have at least an answer soon if not a fix...
it's a very nice little app and I'm using it now for a few weeks.
But I've found when you have to many audiobooks or when the aaudio-files are very big (about 6 MB's) the program can't determine the length of the audio-files any longer...
Maybe we can get an update for that?
The only time I have been able to load an audio file the program could not determine the length of was when I forgot to unplug the phone from the Zune software when prompted. I have tested files up to 50 mb. Of course, it could be file dependent. Did the file play even after the length failed to update?
Fortunately I am almost done with the next update that includes code to re-check for the length of files if it fails the first time. I need to finish the "Load from DropBox" functionality that I am implementing and then I can submit it. Hopefully this week!
Yes - I can start the player and I can play the file even when it says the length is 00:00:00.
This morning I've transferred some 300 MB audiobook-files to my HD7. After that I disconnected the device and it started "determining length of..." and it immediately started playing the first file (10.7 MBs) but even after 20 minutes it just couldn't find the length of the first audio-file so I stopped the program.

[APP] AlternativeOuyaStore

This app is currently in an alpha release, the AlternateOuyaStore app. This will basically do the same thing that the windows version does, except this one you can run right on the Ouya itself. Like I said this is fairly early, it doesn't look nice, but it does give you a list of all the games with game images (just like the windows one) and you can download the game apks. The download shows up in the notification area and you install it just like side loading any other app, except these ones are recognized by official Ouya Store! I tested and basically developed this thing on cm10 and it seems stable there. Had issues running it on my old HTC one x though...
So if you run into any issues please post below so they can make it into the next commit!
Usage:
1) Tap/click the "Get List" button. (this will load the list)
2) Select a game from the list. (this will put the game title in the textbox next to the download button)
3) Tap/click the "Download" button. (this will start the download for the apk file) Due to the game changing as you thumb-stick through the games though I find it easiest to just use the touch pad to tap download. Annoying... so this is on my list.
4) Either tap the completed apk download in your notification or go to you default download location and tap the apk file.
5) Play the game! You can also play through the official Ouya Store Play menu( as the biggest issue was getting the Discover area to load on CM10)
For now the download is basically done by sending the download url as an intent, which then launches whatever you have as your default browser. This saves me from having to have extra permission like saving to storage and progress bars and a whole mess of stuff that I will get to later but don't want to worry about right now.
To Do list:
- Better GUI
- Sort list functions
- Generalize functions to reduce coupling with the main activity.
- Add internal download and install functionality
I'm releasing this under the GNU GPL so have at'er!
Github-
https://github.com/ProfessorPopTart/AlternateOuyaStoreProject
(This is my first android app so go easy on the code sloppiness! lol)
For the non-coders that just want to try it out, the install apk can also be found in the AlternateOuyaStore folder in the link above.
Irc FreeNode #ouya-dev
Sounds Kool will give a try
you know what really sucks is that I saw this at 5oclock this morning an hour before I gotta go to work. I WANNA PLAY
Just downloaded, Checking this out now! The Ouya store needed this type of sorting VERY badly! thanks for the efforts
I'll try again later tonight but I was having issues downloading apps with this? So I got an issue the source is built with the odk I feel like an a$$ for saying this. But I ain't touching the odk with a ten foot stick for a couple months. Honestly I've done a bit of theming, hacking and phone flashing but all of that was either hacking apks, building them from android source or with the android sdk. Right now I'm learning how to straight up code android and don't want to mess up my machine with the odk (some old school themers know what I'm talking about).
So about a half an hour ago I set this up on eclipse and got it up and running made a few changes so far. I haven't tested on my ouya yet but ran it on my phone (htc evo 4g lte) to make sure that the array list would work. It does but it doesn't download. I changed the screenorientation in the manifest because on screen orientation it resets. It's a temp fix that does work but later we'll have to do something about handling runtime changes a little bit better.
On a side note I made a webview that goes to the ouya update site. Eventually I want it to go to the site download the text as a string checks it against our build.prop and if different then it downoads the url (update zip) to your device to install. I can't give a time frame right now on how fast this will take right now I'm working six days a week 10 hrs a day at universal building project 722. But this stuff isn't on the shelf.
Expect a new release around 9pm eastern.
Here we go
update 1
added a sort function so that the list is alphabetical
changed name to simply "the store"
added icon to appear in ouya launcher ( I hope it works)
no more clicking buttons to download list it starts automatically
added a counter in top of screen that displays the number of apps available
when you click the list it automatically downloads the app
think thats it
problems
the only problem I have is that it doesn't display the icons a custom adapter is required for that.
Ui needs some more work but it takes time
source code here https://github.com/asadullahibnrob/AlternateOuyaStore
Alright this update is a little back and forth.
I removed the counter and lost the the ability to sort the apps (temporarily).
But gained a nice big picture but need to add a cache to get to run smooth.
Not really excited LOL.
Source code here https://github.com/asadullahibnrob/theStore. Any questions comments or complaints let me have em.
Hey guys,
I have tried both apps. I appreciate the effort you are putting to this. Both application are in very early development, but in the right track!
A note to both apps
When you click a paid app (with no free trial) i.e. Towerfall, the app crashes. I believe this is because when you request the data for that app, it won't return a download URL as expected, and i assume you guys are not validating this .​
I recommend that you mark which apps aren't free for download, and either do nothing when clicked or redirect to app's official entry on the original app store.
Keep up the good work :good:
That's my fault I'll see if I can fix it today. ........
EDIT: Actually i was wrong kinda they changed the auth token to something else. I glance through their code and didn't see anythng in the ouya oobe.apk I'm wondering if they give one to each user. But maybe I could set it up so that it goes to the info page so that you can send it to your ouya.
Hey guys just a heads up I'm gonna working 7 days a week 12 hours a day for a few weeks.

Gear VR Development Tips & Tricks

If you've been to the official forums, you may know it's mostly questions about when updates are coming or how to fix a specific crash. There is a lot of useful information floating around, but very little open development on / for it. These are some of the tips and tricks that have either been posted and updated, forced out of Oculus, or generated through personal testing.
Adding your own oculussig file to an apk:
Obtain your device ID by connecting the Note 4 and using "adb devices"
Enter the number into the form at https://developer.oculus.com/tools/debug/
Download https://mega.co.nz/#!ssB0ALwR!dLKy0OUv7H7aGZQ1YiqXKfDgUc3fnOIghCiEFAFtt4g
Extract the zip and copy the game and signature file into the extracted folder
Run the command to repack for your computer platform (available in USAGE.txt)
Running any app as vr_dual (without Oculus Home):
Install any Gear VR app with your device signature (app can downloaded, compiled, or backed up from an official install)
Go to your device Settings -> Application manager -> Gear VR Service (usually in the "Downloaded" section but could also be in the "All" section).
Tap on "Manage storage"
Tap the "VR Service Version" number six times.
Wait for scan process to complete and you should now see the Developer Mode toggle on this screen.
You should now be able to launch your app without the headset and also dock the headset at any time without having Home launch.
Don't forget to disable developer mode to restore regular functionality after you're done playing the game and enable it again before returning.
Unity game development shortcuts:
So you need a bunch of characters and environments, but the Unity asset store is expensive and you haven't had enough experience in 3DSMax to make your own. There is another way to get tons of content both fast and cheap:
MMD4Mecanim : http://stereoarts.jp/
mmd-for-unity: https://github.com/mmd-for-unity-proj/mmd-for-unity
UnityXNA: https://github.com/mvi/UnityXNA
MMD4Mecanim and mmd-for-unity are extremely similar. The difference between them is that MMD4Mecanim adds the necessary plugins to Unity (and the platforms you build against) to allow you to use models and motions that it converts, while mmd-for-unity performs a fairly complete conversion that allows you to use the items as Unity components with minimal scripts to control some of the aspects that don't fully convert. It is personal preference which is used. When building a scene that is mostly MMD, it is probably better to use MMD4Mecanim. When attempting to mix MMD into a scene built primarily with Unity, mmd-for-unity is probably a better choice.
There is a quick overview of how mmd-for-unity works available at https://www.youtube.com/watch?v=zSC2hKaG5AA
Many developers using the Gear VR favor MMD4Mecanim because of the other plugins that have been built on top of it, such as lip sync. In terms of game performance, mmd-for-unity may have a slight advantage due to decreased overhead. It is unnoticeable, though.
4 more days
I need a noob proof setup guide lol
friedrich420 said:
4 more days
I need a noob proof setup guide lol
Click to expand...
Click to collapse
Don't worry, I am bringing over all of the stuff I put together from the Oculus forums and personal testing.
I am going to put together a small folder on Mega with tools and some samples.
Thank you so much for starting this thread. Great idea and hopefully I'll learn a lot. One question when i try and enable developer mode after the scan I get the message "you are not a developer" and it closes
sawdoctor said:
Thank you so much for starting this thread. Great idea and hopefully I'll learn a lot. One question when i try and enable developer mode after the scan I get the message "you are not a developer" and it closes
Click to expand...
Click to collapse
My professor had the same issue. He had to reboot and wait a minute, then go in and try it again. It could also be how fast the clicks are. I know he wasn't rooted and didn't do anything other than reboot. When I did it, I tapped fast.
twistedumbrella said:
My professor had the same issue. He had to reboot and wait a minute, then go in and try it again. It could also be how fast the clicks are. I know he wasn't rooted and didn't do anything other than reboot. When I did it, I tapped fast.
Click to expand...
Click to collapse
I've tried it twice but will keep trying. You obviously know which kernel i'm using but I'll keep at it
sawdoctor said:
I've tried it twice but will keep trying. You obviously know which kernel i'm using but I'll keep at it
Click to expand...
Click to collapse
You could also try clearing data for the service, then open Home, then try. When they were setting up, they clicked around but didn't really say what they did. I was in a video conference with like 7 people trying to tell one lol.
What I know for sure was it didn't require root or any additional apps.
I just found a Miku archive with some 1,000 models... Looks like it's time to make a Unity orgy. Speaking of, I should post the Miku to Unity stuff. It's a cheap way to get models and they work with the new animations.
Moved to post 2
Same issue for me, keeps telling me I'm not a developer. Tried multiple data clears and restarts.
Jstylen said:
Same issue for me, keeps telling me I'm not a developer. Tried multiple data clears and restarts.
Click to expand...
Click to collapse
That's odd. I just noticed mine was cleared out after doing the last update and I activated and enabled it just now.
Edit: I think I figured out what's happening. It works for me because I have my own game with my signature installed. It didn't take any special app for the other tests because their copy of my game had their signature and I bet they installed it between attempts.
I think you have to have any VR app that contains your own signature installed to "qualify" as a developer. I updated the instructions to include that step.
This is what I was suspecting but hoped I was wrong. I don't have the money for the gear VR right now and hoped to try some things out with an stm32fdiscovery board instead. I suppose now I'll have to compile something with my signature in it.
I didn't realize there actually was a small section for the Gear VR, so we moved over there.
There are some video conversion tips on the official forums. I haven't tried them, but I'll try to gather up what I can and add it here.
We need more positive, productive threads in this section....
I am moving all of the content from a few other threads here, since the Gear VR section has a bit of a troll problem.
One possible way to improve the range of focus / clarity when using the Gear VR:
I found this trick while trying to figure out why no adjustment to the Durovis Dive (moveable lenses) seemed as clear as I expected. The solution was to move where the headset sat on my face, despite it not feeling like that was the "intended placement"
Whether or not you use the nose piece is up to you. I honestly never took the time to compare the two foam blobs, so whichever is the default is the one I use. Most of the trick involves using the tension of the top headband, so adjust the one that wraps around your head to wherever it is tight, but still comfortable.
The next part is where it varies by user. You will want to put the headset on and adjust the focus wheel to get as clear as possible for you. After you are comfortable with the view and about to come back here and say WTF, hold the headset by both sides and move it slightly higher on your face. If the view gets clearer, adjust the top band to keep it locked in place. If there is no change, try moving it lower on your face, and again adjust as needed.
While this may not fit into a scientific explanation of pixel depth, it is a rather simple concept. By moving the headset up or down, you actually slightly alter the angle in relation to your eyes. Most games and apps are intended for a view "level to the eye" and when the headset is too low, your nose can cause it to angle slightly downward. When it is too high, the upward tilt can cause your eyes to strain a bit more.
Hopefully that can help some to solve their issue with clarity before running off to cut up or pack in any additional parts.
I have been meaning to bring over a lot of other stuff from the Oculus forums, but I got wrapped up in having them delete my account.
It appears that some people feel the need to respond to every single thread with public service announcements. Whether or not that is the reason this section has all of 5 active threads and if that led to the Oculus Gear VR section being flooded with the same nonsense cannot be proven without a massive survey. All I can say for sure is that the development sections are safe and hopefully this being a development thread means it is, as well.
Anyway, as for that stuff I was going to bring over:
Controller Mapping by Drash (https://forums.oculus.com/viewtopic.php?f=67&t=20070)
In my Unity apps I use an input layer that requires me to map from an HID to a set of button mappings, and then the rest of my app just deals with with the device-agnostic things like Left Bumper, Start Button, etc. I know a lot of developers out there do something similar, and a few of the third-party input solutions do this as well. There's only one gotcha -- developers are responsible for ensuring setting up button mappings (or profiles) for a reasonable variety of controllers.
As far as I can tell, the most-used controller on Gear VR is the Samsung EI-GP20 Gamepad that optionally comes bundled with the Gear VR. That's good news for the developers that so far aimed to support that at a minimum, but as far as I can tell is a variety of other semi-popular gamepads in use as well:
Moga Pro Power
Moga Hero
PS3 Controller
Gamestop Gamepad
Moga Pro
Steelseries Free
ipega (I think there's a few different versions, not sure which ones people actually use)
So far, I've ordered and tested 6 different controllers now for both the desktop and for Android, and this helps because most of their mappings vary, but this is clearly not a future-proof way to go. Am I going to have to keep buying every controller to find out their HID and mappings? So until I take a different approach, at the very least I would like to throw out there some of the button mappings I've picked up from testing physical controllers, and perhaps others could do the same?
----
1.
"Gamestop Gamepad" aka "Red Samurai Wireless Controller for Android Tablets". I heard this cheap gamepad mentioned several times lately. Dirt cheap. And yet it feels great in the hand and all buttons feel very usable. Solid choice. It has two modes, one that seems to send keyboard commands, and one that actually acts as a normal bluetooth gamepad (Mode G).
Here are the button mappings for Mode G.
HID: "GS gamepad"
Button 1 - Button 0
Button 2 - Button 1
Button 3 - Button 2
Button 4 - Button 3
Left Bumper - Button 4
Right Bumper - Button 5
Left Trigger - Button 6
Right Trigger - Button 7
Left Stick Button - Button 8
Right Stick Button - Button 9
Start - Button 10 (says "Enter" on the controller)
Select/Back - Button 11 (says "Escape" on the controller)
Left Stick X - Analog 0
Left Stick Y - Analog 1
Right Stick X - Analog 2
Right Stick Y - Analog 3
Dpad Left/Right - Analog 4
Dpad Up/Down - Analog 5
----
2.
Moga Pro Power - This one holds a charge that you can use to recharge your Android device. Very nice controller, quality is top-notch, but pretty expensive. Also has two modes, one that is specific to Moga games, and one where it acts as a normal gamepad (Mode B).
Here are the button mappings for Mode B:
HID: "Moga Pro 2 HID"
The button mappings are exactly the same as the Gamestop Gamepad, except that the visual labels for the Start/Select buttons actually say Start and Select, and it doesn't seem like the Select button works in HID mode. Not 100% sure about this.
----
NOTE: The Samsung Gamepad does not have triggers, nor does it have stick buttons (pushing in the thumbsticks), so you may want to keep that in mind when designing a control scheme with wide gamepad support.
Click to expand...
Click to collapse
Gear VR Input Diagrams (download includes the Samsung controller and headset button images):
https://forums.oculus.com/viewtopic.php?f=67&t=17926
Streaming video (using Kodi / XBMC)
Nevermind, this should probably be a thread...
Hi! Thanks for posting this! I followed the instructions here, successfully installed a signed apk (one that wasn't on the phone previously), then turned on dev mode as described through the tapping and switch. Nothing seemed to have changed. I then toggled dev mode on and off (via the switch) and restarted the phone several times each. However, I still get the Oculus Home launching every time I insert the phone into the Gear VR as if nothing changed. I'm on the T-mobile US ROM and device, and I don't have the 5.0 upgrade yet. No root.
Does anyone have any ideas? I want to run cardboard apps in my Gear ! Thanks!
TriOptimum said:
Hi! Thanks for posting this! I followed the instructions here, successfully installed a signed apk (one that wasn't on the phone previously), then turned on dev mode as described through the tapping and switch. Nothing seemed to have changed. I then toggled dev mode on and off (via the switch) and restarted the phone several times each. However, I still get the Oculus Home launching every time I insert the phone into the Gear VR as if nothing changed. I'm on the T-mobile US ROM and device, and I don't have the 5.0 upgrade yet. No root.
Does anyone have any ideas? I want to run cardboard apps in my Gear ! Thanks!
Click to expand...
Click to collapse
If nothing is running, it will launch home.
There is also a possibility it only works for Gear VR apps. In that case, you could just disable the whole Gear VR service temporarily.
Either way, you don't really need to quote the OP to ask. It's implied.
twistedumbrella said:
If nothing is running, it will launch home.
There is also a possibility it only works for Gear VR apps. In that case, you could just disable the whole Gear VR service temporarily.
Either way, you don't really need to quote the OP to ask. It's implied.
Click to expand...
Click to collapse
Thanks for the reply. Sorry to violate posting etiquette, I didn't realize I had quoted that entire post - I will trim it down if I can find edit (I am new to posting here, so forgive me).
I have FPSE or any other cardboard app running, and gear home still pops up over it when docked to the usb port of the gear vr. I can't freeze Gear VR service without root, which I'm looking in to as the next best option I suppose. Force stopping it doesn't seem to work either. Reports on Reddit threads indicate this works with Cardboard apps, allowing them to run without home launching, but not for me.

[APP][NST/G] Reading Now button menu

See post #50 for a new user-customizable version, RN Menu 2.0!
*Updated to v. 1.1.1--more accurate placement of menu in landscape*
Version 1.2.1 substitutes FastMode2 for NoRefresh.
This app is a toggle which places a small menu directly below the status bar "reading now" button and extends the function of that button. While the app can be used as a stand-alone toggle, it is best used by reassigning the "reading now" button with Nook Touch ModManager to the app. No function is lost, as the first item on the short menu is "reading now". As currently configured, the menu options are:
1. Reading Now (same as original stock button function)
2. Orientation (a landscape/portrait toggle using Rotation Locker)
3. No Refresh
4. Set Cover (which potentially sets the screensaver image to the current book cover)
See screenshot below.
While the app is not user-configurable (maybe some day, probably not) now that I have produced a template to work with it is reasonably easy to customize and I would entertain requests for specific items--assuming I can figure out how to implement them! There have been other approaches to setting a menu in this position, but they have involved modding jars and have been limited to specific firmwares. This app should run on all firmwares and does not require modification of any jar files. If you don't like it, you just uninstall it and it's over and done with. For me, this project has been a proof of concept and I've learned a lot. Maybe an extended power menu is next?
Requirements
--Rotation Locker (attached below) (required for Orientation option)
--No Refresh Toggle (I am running NoRefreshToggle-debug2, but it may not matter--someone can let me know?)
--Root (required for Set Cover option and for menu itself as of v.1.1.1)
--sqlite3 (available in this post where the screensaver option setup is explained in detail)
--As this is a Tasker-generated app (but does not require Tasker to run!) there is a dependency on two library files normally installed with GApps. If you do not have GApps installed on your device, you can still use this app by copying the two attached files into the locations shown below (the xml file is zipped so you can download it rather than view it):
/system/etc/permissions/com.google.android.maps.xml
/system/framework/com.google.android.maps.jar
Set permissions for both files to rw-r--r-- and reboot. Without these files resident, the app will not install.
---------------------------------------------------
How to use
The best implementation is to reassign the "reading now" button to this app using Nook Touch ModManager. When that is done, tapping on the "reading now" icon will produce the menu and you can make your selection from there. If you inadvertently tap the icon, you can dismiss the menu by tapping again. It's a toggle. Starting with v. 1.1.1, root is required to allow the app to query the current screen orientation. This enables a more accurate placement of the menu in landscape mode.
The screen orientation by default is, of course, Portrait, so the toggle goes immediately to Landscape. Landscape runs as a background service (notification) to lock in the feature since some apps resist the change. Selecting orientation again returns you to Portrait and ends the background service until the next selection. It's also possible to exit Landscape by tapping on the notification. This brings up the three-line menu (invisible text unless you have altered your background image colors). The top option is Portrait.
The first time you select Set Cover you will be asked to allow root access. This part of the app includes shell commands and thus needs root access.
That's it! I'd appreciate bug reports and/or suggestions and welcome requests for customized menus (at least for now!). Enjoy!
@nmyshkin I really appreciate you continuing to develop this wonderful device. Thank you for everything you've done on the NST.
I have a request, if you have time and it's not too much trouble.
1. Reading Now
2. Renate's Temblast Library (which I use as a quick list of what I'm currently reading)
3. Fastmode2
4. Your new USB Audio Toggle
ALinkToTao said:
I have a request, if you have time and it's not too much trouble.
1. Reading Now
2. Renate's Temblast Library (which I use as a quick list of what I'm currently reading)
3. Fastmode2
4. Your new USB Audio Toggle
Click to expand...
Click to collapse
I can do that easily if I know how the library is supposed to work. Is it just sending an intent, starting an app or....?
Also, there's nothing magic about 4 items, so if you want fewer or more, that's doable.
Edit: I've looked at the Library app. Very straightforward tap-and-go. So just let me know if you want any more (or fewer) items and I'll get on it.
nmyshkin said:
I can do that easily if I know how the library is supposed to work. Is it just sending an intent, starting an app or....?
Also, there's nothing magic about 4 items, so if you want fewer or more, that's doable.
Edit: I've looked at the Library app. Very straightforward tap-and-go. So just let me know if you want any more (or fewer) items and I'll get on it.
Click to expand...
Click to collapse
Wow! That's awesome! Yeah, I think those four would be awesome!
Could you also make one with
1. Reading Now
2. Renate's Temblast Library
I have bought and rooted many NST's for friends and having just those two options will be very convenient for them... They aren't really techy, so too many options would just confuse them.
That would be useful for them when I make other NST's. I'm planning on making 3 more, so I think that would be great! The one with 4 options on it, I'd be using personally.
ALinkToTao said:
Wow! That's awesome! Yeah, I think those four would be awesome!
Could you also make one with
1. Reading Now
2. Renate's Temblast Library
I have bought and rooted many NST's for friends and having just those two options will be very convenient for them... They aren't really techy, so too many options would just confuse them.
That would be useful for them when I make other NST's. I'm planning on making 3 more, so I think that would be great! The one with 4 options on it, I'd be using personally.
Click to expand...
Click to collapse
These are the apps you're looking for {waves hand vaguely}.
Thanks so much! I'll put it to use and see how it runs. I'm sure it will be great.
It runs great! I have noticed that this theoretically could be used to have a second quicknav menu. You can activate it also by programming one of the side buttons to show/hide it. Great job!
If someone didn't want to run the launcher, this could save them from using it with their most used apps on this.
@nmyshkin ... thanks ... I would be interested in this app, I wanted to have the default 'reading now' on nook reader ... and a customizable option so i can probable configure some other reading apps and their last read book directly opening when the option is invoked ...
Update
_____________
I tried installing your app from OP for 1.2.1 ... but it did not install ... If its not too much trouble can you make one that runs on 1.2.2 and share the same ?
thank.s
aiamuzz said:
@nmyshkin ... thanks ... I would be interested in this app, I wanted to have the default 'reading now' on nook reader ... and a customizable option so i can probable configure some other reading apps and their last read book directly opening when the option is invoked ...
Update
_____________
I tried installing your app from OP for 1.2.1 ... but it did not install ... If its not too much trouble can you make one that runs on 1.2.2 and share the same ?
thank.s
Click to expand...
Click to collapse
The app should run on FW 1.2.2. If you can't install maybe you forgot to copy the two small dependency files?
nmyshkin said:
/system/etc/permissions/com.google.android.maps.xml
/system/framework/com.google.android.maps.jar
Set permissions for both files to rw-r--r-- and reboot. Without these files resident, the app will not install.
Click to expand...
Click to collapse
Edit: or, did you forget to install Rotation Locker first? Because that app is one of the menu options, it's seen as a dependency and my app will not install if it doesn't see it there.
As I made it, however, the app will not do what you want. It is not programmable by the user. At the time I made it I was just starting out with making apps with Tasker. I suppose it would be possible now to produce an app that is more flexible, but it would not be very user friendly because there is no way to predict what someone might want to do and therefore code would almost certainly need to be sussed out and written in by the user. That doesn't sound like something people would really want. In any case I'm still bogged down in my Dictionary project so.....
If you have a static set of wishes, that would be easier.
In any case I'm still bogged down in my Dictionary project so.....
If you have a static set of wishes, that would be easier.
Click to expand...
Click to collapse
Oh Dictionary project for our Nook Simple Touch and Glowlight ?
Is it interesting ? If so pleas share the link to ...
Static set of wishes ... It has a limitation of 4 buttons only ?
1. Nook continue to the Last read book and position.
2. Amazon app so that will direct the user to the amazon app with the last book open.
3. App Drawer
4. Nook Clear Screen
these would be my 4 if 4 is the limitation ... however if more were to be accommodated then ...
5. File Manager(Root Browser)
6. Statusbar - Glowlight
Would a cleaner implementation for the 5th & 6th options and others separately as an app that can be mapped with NTMM to the Statusbar - Glowlight button(primarily because this part is accessible directly from the book you are reading in the default nook reader, some ting of a quickaccess tiles/lists with the below ...
1. Glowligh & Wifi
2. File Manager(Root Browser)
3.
4.
5.
aiamuzz said:
Oh Dictionary project for our Nook Simple Touch and Glowlight ?
Is it interesting ? If so pleas share the link to ...
Click to expand...
Click to collapse
Not ready yet, but slowly getting there. The app is complete. Still testing to be sure it won't destroy the NST/G. I have a few more dictionaries to complete.
aiamuzz said:
Static set of wishes ... It has a limitation of 4 buttons only ?
Click to expand...
Click to collapse
That's how it is now, but any number of buttons can be added. Do you really want a laundry list?
aiamuzz said:
1. Nook continue to the Last read book and position.
2. Amazon app so that will direct the user to the amazon app with the last book open.
3. App Drawer
4. Nook Clear Screen
these would be my 4 if 4 is the limitation ... however if more were to be accommodated then ...
5. File Manager(Root Browser)
6. Statusbar - Glowlight
Click to expand...
Click to collapse
Mmmm.... See below.
aiamuzz said:
Would a cleaner implementation for the 5th & 6th options and others separately as an app that can be mapped with NTMM to the Statusbar - Glowlight button(primarily because this part is accessible directly from the book you are reading in the default nook reader, some ting of a quickaccess tiles/lists with the below ...
1. Glowligh & Wifi
2. File Manager(Root Browser)
3.
4.
5.
Click to expand...
Click to collapse
So you seem to be describing (kinda) my QuickTiles app. Have you looked at it?
Take a look at that (which includes the Nook Clear Screen option and the Glowlight and WiFi controls, but not a file manager option) and see if that would meet your needs. Modules could be added but I did sort of want to keep it to display/mode functions, rather than turning it into a sort of launcher.
After that, confirm your choices for the ReadingNow menu and I'll see what I can come up with. Not sure about the Kindle app opening to the last book, but the info must be somewhere that could be poked at.
Not ready yet, but slowly getting there. The app is complete. Still testing to be sure it won't destroy the NST/G. I have a few more dictionaries to complete.
Click to expand...
Click to collapse
that's good to know ... its for NST/NSTG ... I just can't seem to part with this device myself ... and you are developing things for it ... can't get any better than that !
After that, confirm your choices for the ReadingNow menu and I'll see what I can come up with. Not sure about the Kindle app opening to the last book, but the info must be somewhere that could be poked at.
Click to expand...
Click to collapse
as far as the kindle app and its last read book is concerned, you don't have to dig deep ... when i read a book on kindle and exit out of the app without hitting the back button ... the app will start with the last book open.
The following sequence/order should be good enough for 4 entries ...
1. App Drawer
2. Nook continue to the Last read book and position.
3. Amazon app so that it will direct the user to the amazon app with the last book open.
4. Nook Clear Screen
thanks for all the help ...
(the xml file is zipped so you can download it rather than view it):
Click to expand...
Click to collapse
I can't seem to extract the xml file from this zip file ... or ... should i just rename the extension to .xml ?
aiamuzz said:
I can't seem to extract the xml file from this zip file ... or ... should i just rename the extension to .xml ?
Click to expand...
Click to collapse
Huh. Wonder how/when that happened? Try it again. I uploaded a new copy and downloaded it to test. Worked fine this time.
nmyshkin said:
Huh. Wonder how/when that happened? Try it again. I uploaded a new copy and downloaded it to test. Worked fine this time
Click to expand...
Click to collapse
No problem ... i was able to download that xml file from one of your other threads whose pre-requisite too was to have these very same 2 files to be present on the device.
I opened your RN app and the drop down did open on the top left book icon ... but this opens only one time ... Does one have to reconfigure using NTMM so it opens every time ?
aiamuzz said:
No problem ... i was able to download that xml file from one of your other threads whose pre-requisite too was to have these very same 2 files to be present on the device.
I opened your RN app and the drop down did open on the top left book icon ... but this opens only one time ... Does one have to reconfigure using NTMM so it opens every time ?
Click to expand...
Click to collapse
I downloaded and installed the apk (1.1.1) from the first post. It runs fine for me. Did you get and approve the SU prompt?
There's nothing special to be done with NTMM other than assign the app to the "reading now" soft button.
Did you by any chance reinstall over a previous installation when you were having trouble? If so, you need to do a complete uninstall before reinstalling on apps like this with toggles. If the toggle variable has been messed up it will stay that way unless you do a fresh install since installing over an existing app of the same version preserves the data (like the state of the toggle variable).
@nmyshkin ... thanks i figured ... Is it just me or the Nook Book Button app seems to be a little quicker(about 2-3 seconds) quicker than your RN app to show the drop down menu on invocation.
Not sure if its just me and my device or its across the board.
Cheers.
aiamuzz said:
@nmyshkin ... thanks i figured ... Is it just me or the Nook Book Button app seems to be a little quicker(about 2-3 seconds) quicker than your RN app to show the drop down menu on invocation.
Not sure if its just me and my device or its across the board.
Cheers.
Click to expand...
Click to collapse
No, it's not just you. I could change it like I did QuickTiles so that it responds more quickly but as I don't use it any longer, I have never revisited it. It would involve an "always on" overlay of the button.
The following sequence/order should be good enough for 4 entries ...
Click to expand...
Click to collapse
1. App Drawer
Click to expand...
Click to collapse
2. Nook continue to the Last read book and position.
Click to expand...
Click to collapse
3. Amazon app so that it will direct the user to the amazon app with the last book open.
Click to expand...
Click to collapse
4. Nook Clear Screen
Click to expand...
Click to collapse
Oh you can make it snappy ? Thanks whenever you find time to work on this request, please do remember to make it fast and responsive ...

Twinview Dock 3 - keyboard

Does anyone know if it is possible to have an onscreen keyboard on the bottom screen (ie the phone) when using the Twinview Dock 3? For example, if using it to type emails etc, the bottom screen would be the keyboard and the top screen would be the mobile app.
yes, took me a minute to figure out but it can be done
Thanks @biotoxin, might send you a message when the unit arrives for a hand in setting it up if that is ok. Will also post details here for other users.
heads up it's app specific, not broad form, the screens are effectively 2 independent systems, so it's up to each app to make it work
I've been looking at apps like an2an to maybe get something more universal but it seems like the twinview doesn't like multiple instances of the same app simultaneously but I remember there being an option to make it happen so I'm researching...
the twin apps feature might be one way but I'm not entirely sure... details below
Code:
1.Download file twinapps_required_apps.xml
https://gist.github.com/shakalaca/9c7a8c6769cb87c6e7d83e809cbe6e5d#file-twinapps_required_apps-xml
Remember, you must download the file from right corner "Raw" button, do not press "download zip" to download or copy and paste the strings from the link
2.Find out the app package name that you want to add , As the example from the tutorial, they choose "GoShare" as an example, you can check its package name from the website version Google play, the hyperlink after "id=" is its' package name.
For Example "https://play.google.com/store/apps/details?id=com.gogoro.goshare"
"com.gogoro.goshare" is the package name.
3.Edit the downloaded twinapps.xml. Find out this string from the file "<string-array name="twinapps_required_apps">" (for apps)
or <string-array name="twinapps_required_apps_games">(for games). Added <item></item> in the front and after the package name. For example if you want to add "Goshare" in the app list, it should be<item>com.gogoro.goshare</item>. Add it after <item>com.imo.android.imoim|imo free video calls and chat</item>. And Save the file.
4 Connect your phone to your pc and use adb to push the edited twinapps.xml into your phone adb push twinapps.xml /sdcard/.
5 After pushed the xml file to your file, use this command to update the twinapps list
adb shell am startservice -a "asus.intent.action.TWINAPPS_CDN_FILE_UPDATE" -d "file:///sdcard/twinapps.xml" --ei "ACTION" 1 com.asus.twinapps/.TwinAppsService.
@biotoxin - just got the twinview dock 3 - great piece of hardward, well built and the power/volume buttons are handy!
In relation to getting a keyboard working on the lower screen - which apps did you use that it worked on, are you able to share the settings? Thanks!
Basically everything that officially supports it is listed in the armory crate, there's a jank way to do some things but it irritates me on a fundamental level so I'm looking into api level access to see if maybe I can make a wrapper that'll launch anything/ everything, or at least wrap a keyboard, if you want to give it a stab unity has the api info readily available or there's the jank way mentioned above
Hmm definitely can't seem to find a way to launch a keyboard on the bottom screen, how did you manage to do it?
Could someone port something over from the Microsoft duo perhaps? Android is capable of it, would be awesome for so many things!
whatevvz

Categories

Resources