Kaj Toet

Results 34 comments of Kaj Toet

Unfortunately as it's all compiled code, you can't hook directly to the gyro, so you need to filter the results instead.

I used the latest Cardboard jar from the Github and Intellij automagically decompiles it except for the native code. You can use any other decompiler probably. It's not obfuscated code...

Here's the class decompiled: http://pastebin.com/1YkXXXca

http://pastebin.com/xpbabKid This is HeadTransform. I'm not sure if it's better to use reflection or anything, but in theory you could include the Cardboard.jar or only needed source files such as...

Ah, you could just use reflection like it is done here as well: https://github.com/Kjos/XposedJitteryGyroFix/blob/master/GyroscopeNoiseFilter/src/net/kajos/gyronoisefilter/GyroscopeNoiseFilter.java#L171 I forgot it was done like that. Just use a similar way to get the float[]...

private native void nativeGetCurrentEyeParams(long l, com.google.vrtoolkit.cardboard.HeadTransform headTransform, com.google.vrtoolkit.cardboard.Eye eye, com.google.vrtoolkit.cardboard.Eye eye1, com.google.vrtoolkit.cardboard.Eye eye2, com.google.vrtoolkit.cardboard.Eye eye3, com.google.vrtoolkit.cardboard.Eye eye4); in package com.google.vrtoolkit.cardboard; class: CardboardViewNativeImpl That would be the easiest way. If they...

Yeah, better to start with the NativeImpl probably. That won't give any double filtering issues for sure.

com.google.vrtoolkit.cardboard.CardboardViewNativeImpl$CardboardViewNativeImpl I think this should be: com.google.vrtoolkit.cardboard.CardboardViewNativeImpl But I will look into it.

Yes, pretty sure it should be like that. https://github.com/rovo89/XposedBridge/wiki/Development-tutorial