I install latest apk to my android (4.4)
I start FreePIE on PC, I start it on phone
on phone, i set IP (192.168.0.2 <- Im sure)
target port, leave 5555
Device Index 0
Check one of Send Orientation or Send raw data, doest matter in my problem
Fastest method
Press ON
In Debug: There is blank Accelerometer, blank Gyro, Blank magnetometer and 3 numbers at Orientation. That numbers change accordingly as I rotate my phone.
FreePIE on PC just wont move mouse at all
So I went to detect if UDP packets are actually hitting my PC. Downloaded "UDP Test Tool" and saw:
when I check Send raw data, no packets come.
when I check Send orientation, packets come nicely and cleanely. -> I am using only Send orientation now in phone settings. I see packets are comming.
When I am trying with FreePie, my UDP Test tool is off, so its not binded to adapter/port. I checked.
I try this code to move my mouse.
Code: Select all
def update():
global yaw
global roll
global pitch
yaw = android[0].googleYaw
roll = android[0].googleRoll
pitch = android[0].googlePitch
mouse.deltaX = -deltaYaw*600
mouse.deltaY = -deltaRoll*1000
if starting:
yaw = 0
roll = 0
pitch = 0
enabled = False
android[0].update += update
diagnostics.watch(yaw)
diagnostics.watch(roll)
diagnostics.watch(pitch)
deltaYaw = filters.delta(yaw)
deltaPitch = filters.delta(pitch)
deltaRoll = filters.delta(roll)
Any help?