Android Example How to connect iMpulse Controller to your App

You can find Game controllers as iMpulse Controller.
It works by Bluetooth. So your App can have remote control
http://www.impulsecontroller.com/

This device need Android 4 or higer

Device once paired works as a keyboard so you can
capture key code received as Sub Activity_KeyPress
each key has a keycode.

I'ts easy:
Here how it works:

Here code example

Sub Activity_KeyPress (KeyCode As Int) As Boolean

'21=+
'22=-
'19=UP
'20=DWN
'41=M
'51=W
'29=^
'50=v
'42=n
'49=u

If KeyCode= 49 OR KeyCode=21 Then
'Do something, in my case go Next Trackpoint
NextStep(True)
End If
If KeyCode= 42 OR KeyCode= 22 Then
'Do something, in my case go Next Trackpoint
PreviousStep(True)
End If

If KeyCode= 19 OR KeyCode= 20 Then
'Open Navigator
NavigateToStreetAdress()
End If
End Sub
 

rbsoft

Active Member
Licensed User
Longtime User
Looks interesting. Might be something for my Taxi app.
How is it powered? How long will batteries in the device last?

Rolf
 

jsanchezc

Member
Licensed User
Longtime User
Looks interesting. Might be something for my Taxi app.
How is it powered? How long will batteries in the device last?

Rolf
It has a battery and you can charge by usb.
Once charged it works for more than 100 hours.
 

jsanchezc

Member
Licensed User
Longtime User
what do you think about this:

http://www.zeemote.com/js1/
I buy one and it works better than iMpulse.
But you have to install two Apps:
This from Zeemote to pair and config device: https://play.google.com/store/apps/details?id=com.zeemote.android.js1.quickstart

And one App like this: https://play.google.com/store/apps/details?id=com.hexad.bluezime
This allows you to config device as a keyboard and configure keys.
I install both Apps

You can read keycode and do something:
Sub Activity_KeyPress (KeyCode As Int) As Boolean
ToastMessageShow( KeyCode,False)
End Sub

And also you can configure buttons to send keys like BACK or MENU or CALL....
so you can control Apps

It is very little and its powered by 2 AAA size battery

Note: It does not work with my Samsung Galaxy mini (Android 2.3), not pair device.
But works with Tablet BQ 7'' (Android 4.1.1)
 
Top