Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Bluetooth controller support?
Started by a.von.blumenthal Jun 07 2013 05:54 AM

12 replies to this topic
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

a.von.blumenthal

[GLOBAL: userInfoPane.html]
a.von.blumenthal
  • Observer

  • 11 posts
  • Corona SDK

I can see that someone posted a method to add controller support for the Ouya for Corona SDK, just wondering if this method would work for HID bluetooth controllers such as the Ipega, iCade etc... ? 

 

If so, could someone explain how this might be done? I can't quite understand the source code for the Ouya controller and how the keys are mapped. 

 

Thanks. 

 

Alexis



[TOPIC: post.html]
#2

a.von.blumenthal

[GLOBAL: userInfoPane.html]
a.von.blumenthal
  • Observer

  • 11 posts
  • Corona SDK

Actually, just a thought - would the Green Throttle plugin work? 



[TOPIC: post.html]
#3

DavidRangel

[GLOBAL: userInfoPane.html]
DavidRangel
  • Moderator

  • 888 posts
  • Corona Staff

Alexis - the Green Throttle plugin is in there now and working. Take a look at the plugin's docs page:

http://docs.coronalabs.com/plugin/greenthrottle/index.html

 

But Green Throttle works differently than Ouya (and other HID-based controllers). Support for this is coming, but is not complete yet. Hang tight for a little bit longer.



[TOPIC: post.html]
#4

a.von.blumenthal

[GLOBAL: userInfoPane.html]
a.von.blumenthal
  • Observer

  • 11 posts
  • Corona SDK

Is there an expected ETA for release at all? My game is currently under demo production before being showcased for crowdfunding, it would be nice to be able to promise backers support for bluetooth controllers as well as ouya platform support. 



[TOPIC: post.html]
#5

yanuar

[GLOBAL: userInfoPane.html]
yanuar
  • Contributor

  • 256 posts
  • Corona SDK

I'd love to know about this as well, I know that the docs mentioned key event for gamepad but I was wondering if this only works for green throttle only?

What about something like this : http://www.gamestop.com/android/accessories/tablet-wireless-game-controller-v2/104425?ref=recpdp&cross=883386 ?

 

Or MOGA?

 

Ever since I release some demo of my game, I have gamestick, ouya, and moga calling me in asking if I can support their device and I don't know what to say about this.

I'd love to be able to support them all if possible so here's hoping you guys nail it soon

 

Thanks



[TOPIC: post.html]
#6

DavidRangel

[GLOBAL: userInfoPane.html]
DavidRangel
  • Moderator

  • 888 posts
  • Corona Staff

Guys - we are getting closer on support for Android HID based devices. Some of it is working already and we are finishing it up in the next week or two.



[TOPIC: post.html]
#7

a.von.blumenthal

[GLOBAL: userInfoPane.html]
a.von.blumenthal
  • Observer

  • 11 posts
  • Corona SDK

Any chance that this will be done for the iphone? 



[TOPIC: post.html]
#8

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,895 posts
  • Enterprise

Apple is adding controller support in iOS 7. 



[TOPIC: post.html]
#9

elabguy

[GLOBAL: userInfoPane.html]
elabguy
  • Enthusiast

  • 34 posts
  • Corona SDK

Hi, I was a PAID member back on 2011, my company was trying to develop an iOS + android apps for our Golf training device. The device used Bluetooth to communicate with our apps, we were disappointed with Corona has no Bluetooth support by that time. Two years later we look back to Corona, and seems like nothing has changed….
 

We will have more hardware+smartphone projects in the next few months, we would like to know if corona can support any wifi hardware at the moment? For example, use wifi directly control the hardware  or use wifi thought a router/hub then control the harder? Thanks



[TOPIC: post.html]
#10

DavidRangel

[GLOBAL: userInfoPane.html]
DavidRangel
  • Moderator

  • 888 posts
  • Corona Staff

elabguy - supporting bluetooth or wifi is doable via Corona Enterprise. But is not yet supported in Corona SDK. We have done lots of other things, but this has not yet risen to the top.



[TOPIC: post.html]
#11

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,895 posts
  • Enterprise

We did add support for game controllers, keyboards and mice over Bluetooth as part of the OUYA deployment earlier this summer, so if your devices are HID compliant they might work on Android. 

 

Do you know if these are HID devices?

Rob



[TOPIC: post.html]
#12

elabguy

[GLOBAL: userInfoPane.html]
elabguy
  • Enthusiast

  • 34 posts
  • Corona SDK

We are using Bluetooth 3.0 +HS , HID is way too slow for us. We need to buffer real time sensor data to the smartphone.



[TOPIC: post.html]
#13

ksan

[GLOBAL: userInfoPane.html]
ksan
  • Corona Geek

  • 2,795 posts
  • Corona SDK

For example, use wifi directly control the hardware  or use wifi thought a router/hub then control the harder? Thanks

 

I think this is actually quite possible today. It all depends on your hardware that you are controlling. If you have the capability to serve simple http on your hardware then Corona App can use networking library to connect to it and send commands, receive responses etc. Quite doable as long as you have the flexibility on the hardware design side. 




[topic_controls]
[/topic_controls]