#170 posted by Baker on 2018/04/18 17:55:23
warmest day of the year
It was literally like December at 7 am this morning in Ohio with light snow. I'm a "cold weather coder" so that actually is quite ok by me.
Having Issues With PS4 Controller
Both Bluetooth and wired connections are fucked. HOWEVER, it's not QuakeDroid. There are 3rd party options to solve it but I'm not rooting my phone to play Quake or any other game.
I tried the Steam controller had a little bit of luck but the right pad acts as a mouse cursor. Sadly the orientation is for portrait and the mouse doesn't work as an input device for the software anyway.
Any suggestions would be appreciated. I'd like to buy a Steel Series controller for this but a bit gunshy at this point.
@dumptruck - PS4 Controller Android Article
#172 posted by Baker on 2018/04/18 18:26:56
This article may help you:
There was a dark time, long, long ago (six years or so), when Android was still a platform in its nascent stage, and to really unlock its best features, you had to root your device. Well no more. One of the many things you can do now without rooting is connect your PS4 controller to your Android phone or tablet via Bluetooth.
https://www.maketecheasier.com/connect-ps4-controller-to-android/
This is also this article:
https://www.teamknowhow.com/discover/discover/how-to-connect-a-ps4-controller-to-android
@apm - Mogo "hid Mode"
#173 posted by Baker on 2018/04/18 18:37:36
Some reading/researching around ... you might look into trying to set HID mode.
HID refers to the gamepad protocol inherently supported in Android™ devices running 3.0 and higher.
Both my EVO VR gamepad and my external bluetooth keyboard use HID mode.
MOGA's Pivot app has yet to be updated for Android 5.0 compatibility
However, certain MOGA gamepads (not all) have a HID mode switch on them that let you use HID mode with games.
"How to connect moga pro controller thru hid mode"
https://www.youtube.com/watch?v=5NwT3Msoxzo
@Baker
Thanks for the links. I've been able to pair the devices as shown in the links above. I believe the PS4 is defaulting to HID mode already as I can navigate the phone's UI as the guy showed in the video.
What happens is that I can use the X button IIRC on the controller and the analog sticks do work - which is a great start - but as soon as I press the other buttons the whole thing blows up. The view pans up and the QuakeDroid menu behaves as if the up button is held down.
I think re-configuring the buttons is probably the fix I need but the app you linked is out of date and unstable per the developer. I am going to keep searching and will report back.
There are other apk's that are out there that require rooting my phone to fix all this that I won't even bother with. I'll probably just get a different controller eventually. But I'm tantalizingly close on the Ps4 Dualshock.
@dumptruck - Made For Android
#175 posted by Baker on 2018/04/18 20:40:29
The SDL2 library controller support is for the gamepads that were designed to support Android out-of-the-box.
I guess it is natural that some users with existing PS4/XBox/Steam Controllers are going to try to use those with their phone/tablet, but those aren't the "Works With Android" controllers that the SDL2 library supports.
They may work or not, may require Google Play button remapping apps or what not. The mileage on that is going to vary.
The best I can probably do with that if someone like yourself gets it to work with, say, a PS4 controller, is to make note of your post and perhaps eventually throw a link on QuakeDroid page.
#176 posted by Baker on 2018/04/18 20:41:29
Obviously, I do hope you get it to work.
#177 posted by Baker on 2018/04/18 20:42:43
And if you do, I'll accomodate the info on a "using PC/console info" page or similar on the QuakeDroid page.
@apm - "B Mode"
#178 posted by Baker on 2018/04/18 20:49:17
“B” mode works with Android devices running Android OS 3.1 (Honeycomb) or higher.
According to this link, you may need to switch your MOGO to "B" mode.
https://support.mogaanywhere.com/hc/en-us/articles/201290560-Which-Android-devices-does-the-MOGA-HERO-POWER-work-with-
@Baker
2 things. I was really only attempting it because I read that you can use PS4 controllers on Android and thought "what the heck." But as with everything it's a rabbit hole, time-suck thing to get working.
Even Sony's Android specific streaming solution is limited to specific phones OR you need to root the phone (and *then* you sign into your PSN account --- fuck that noise.)
The other reason I'm trying this is to just add to the knowledge base here on the thread. So, please don't research too much on my account!! I asked earlier as I was hoping against hope there was somethin I was missing.
After work I'll hit Fry's and see what they have for Android controllers. I had a Steel Series for iPad and I do think their products are excellent overall.
Thx!
Anisotropic Filtering/GL Error Pop-ups
#180 posted by mh on 2018/04/19 11:04:56
Confirming that everything starts up clean now.
An interesting observation is that the texture filtering options don't work either. My guess is that there's a bug with glTexParameter calls on this device, and that your code is otherwise fine.
#181 posted by Baker on 2018/04/19 11:22:59
When I was trying to get it to run, if I recall correctly OpenGLES 1.1 doesn't support the texture filtering options docs.
In head, I was planning OpenGLES 1.1 first and then convert to OpenGLES 2.0 using RMQ engine GLSL as a guide.
But getting OpenGLES 1.1 to work was more time consuming than anticipated. Also I was met with challenges like non-supported draws like GL_POLYGON (easy --> GL_TRIANGLE_FAN) but more complex ones (GL_QUAD_STRIP) slowed me down a bit.
Plus limitations like the typical mobile NPOT extension GL_APPLE_texture_2D_limited_npot (despite the name Android uses this commonly) can't be used with clamp to edge textures (if I recall).
So more can definitely be done on the rendering side of things over time.
#182 posted by Gunter on 2018/04/19 18:57:44
Hrm. Trying the latest version on my new Android 6 tablet, the screen does not auto-rotate (flip). That's a problem because my keyboard case connects to one side of the tablet, which means UP is a certain direction, but QuakeDroid does not agree that this direction should be the UP!
But my bluetooth gamepads work flawlessly with no problem. I use an iPega 9023 v2 (suitable for tablets 7" and larger) and an iPega 9055 (suitable for smaller phone-size devices). These controllers actually hold the device, basically converting your phone or tablet into a portable game console.
@gunter
#183 posted by Baker on 2018/04/19 19:12:58
Is it upside down from what you need?
I could add a setting possibly in video options to flip it.
dumptruck also said for his phone it was "upside down".
/Awesome your gamepad works flawlessly.
@Baker
All the phones I tested QuakeDroid on are "flipped" like this. They are all Motorola phones from the past few years.
Moto X Pure (aka Style)
Moto Mini
Moto X (1st Gen)
Motorola RAZR
Sorry
That second one should read Droid Mini - but it's still a Motorola.
GL QuakeDroid Alternate Landscape Build
#186 posted by Baker on 2018/04/19 19:39:33
Download: GL QuakeDroid Alternate Landscape
I'll end up making this a setting in video options later.
#187 posted by Gunter on 2018/04/19 19:44:47
I can't speak with certainty for whatever tools you are using to build this, but with Android development stuff, auto-rotate should be a simple switch somewhere, along with limiting it to either portrait or landscape modes. I mean, it's basically built-in functions in Android to detect which direction is UP and rotate the screen accordingly; you just have to set the game to allow it when developing. Of course, I have played games where it is locked to one position... so it may not be something that is easily set in all development tools. I just know that when I made my little android games ( www.tinyvast.com ), it was a very simple setting to allow auto-rotate in landscape modes only.
If that's not an option, then I guess a menu setting would suffice!
@dumptruck
#188 posted by Baker on 2018/04/19 19:45:57
I think I'll default the landscape to the "gunter/dumptruck" preferred kind. Looks like that should be normal. And then I'll put an option in video options to flip it.
@gunter
#189 posted by Baker on 2018/04/19 19:52:04
The alternate landscape build should solve you issues for now. Let me know.
Whoa.
I guess it's cold out today! :)
#191 posted by ericw on 2018/04/19 22:04:18
Btw, Baker I did get it to build in Android Studio with no issues - nice!
Double checked the joystick initialization code and SDL is just returning the accelerometer and no joysticks for my setup. I think my tablet may just lack the Xbox driver, as it's a running a customized android, so I probably can't help test at the moment.
@ericw
#192 posted by Baker on 2018/04/19 23:25:24
I'm glad compiling went easy. I try to make things easy to compile :) I did a reinstall clean compile, but hadn't tested fresh on a different machine.
I actually don't use Android Studio (it must be installed for the toolchain).
I go to the Android folder where there are several .bat files I made ...
1) (Done just once) make_symlink.bat (hooks up SDL2 folder)
2) gradle_assembleDebug.bat (compiles)
3) adb_install.bat (installs apk to phone)
4) (optional) adb_debug.bat (open a window with live log prints as it runs)
Because the Android compile process is rather slow ... I typically make sure Visual Studio will compile the Windows version of the engine (in 3 seconds Visual Studio will tell me if I am missing a semicolon, the Android process will take 2 minutes to tell me such a thing). I also have a "Fake Android" configuration in Visual Studio with the right preprocessor defines for Android so I can easily work with the code.
/And as time moves on, I want to see if I can speed up the Android compile. Sadly the gradle build system documentation for use with the Android NDK (native C/C++ dev kit) is basically non-existent.
#193 posted by Gunter on 2018/04/20 04:40:14
Well, I played for a little while on FvF and got the same crash as my old device:
Cache_MakeLRU: active link
Also, I feel like the "Invert Mouse" setting should also invert the look axis on the gamepad (right joystick).
Other than that, gamepad control feels really good. Perhaps the "Dead Zone" (the amount you can move the joystick before it counts as moving the joystick) for looking up and down should be a little larger as compared to the dead zone for looking left and right. Most of the time you don't want to look up and down but it's not too hard to accidentally let the joystick drift up or down a bit when you're looking left and right.
When hiding the onscreen controls (from keyboard use), there's no need to disable touchscreen aim.
#194 posted by Gunter on 2018/04/20 05:29:07
Check this out for a picture of my awesome Quake rig running QuakeDroid: http://www.fvfonline.com/forum/viewtopic.php?f=4&t=3810
|