[PROJECT] Using third party gamepads - Windows RT Development and Hacking

Right now, here's what I have:
-Padtie, an open source "gamepad->keyboard" program, which runs on .NET 4, and hopefully should run on WinRT. I am going to test it after work today. It is open source as well, so maybe we can port if it doesn't "just run".
-DirectInput / dinput is not in WinRT, so I'll be looking into adding it. We won't be able to add direct support for the gamepads in windows store apps (like the emulators) because windows store apps can only support xinput (AKA xbox controllers). This is where Padtie will hopefully work it's magic, by making the emulator/game think that a keyboard is being used.
To the more saavy devs: IF Padtie works on RT, but dinput is needed, could I drop the dinput dll's into the same directory as the exe? What are your thoughts on doing so?
If people are interested in this task, please reply so I know how much pressure is on me to finish it . Well, besides the pressure I put on myself because I really want it.

Not exactly related, but still. I connected some gamepad (speedlink xeox) into my XPS10, it was recognized (it's visible in devices and printers), but when I right click it and select option to open gamepad control panel, nothing happens and even it has typical unknown file icon (seems that cpl is missing at all). Is it just a problem with my OS, or result of removing part of gamepad support by MS?
About DirectInput - there's no DI at all, or it is, but just metro apps can't use it? If it is somewhere, this should help:
https://code.google.com/p/x360ce/

This would be amazing as the PS4 controller pairs to the Surface over Bluetooth and is recognized as a Wireless controller however no game seems support it.

Very excited I found this thread, I was just about to create one on the very same topic!
Erisii,
I understand the desire to map to keyboard inputs, and it may even work for most things. However, I don't see how it would handle analog inputs, ie. joysticks.
I do not know enough about the driver side of things, but is it possible for a program to convert the generic input of a controller to the xinput you speak of?
Also, I have some coding experience, but am far from a pro. Let me know if I can help in any way, I have a surface RT running 8.1.

try rawinput
most hid joystick support rawinput
sample:http://www.codeproject.com/Articles/185522/Using-the-Raw-Input-API-to-Process-Joystick-Input

windowsrtc said:
try rawinput
most hid joystick support rawinput
sample:http://www.codeproject.com/Articles/185522/Using-the-Raw-Input-API-to-Process-Joystick-Input
Click to expand...
Click to collapse
I apologize for being a newb. I will look into this a bit, but I assume we would need to write some application that utilizes that? Or are you saying we should port it?

Related

TP as HID Keyboard

Is there an application for the TP which allows for the device to be used as a HID over Bluetooth to control a desktop PC?
there are programs that let you control your desktop PC in various ways, but nothing specific for TP or the keyboard
Wow great idea, that would be nifty on my CarPC! I'm always looking for a smaller keyboard to fit there...
Can't be that hard, I'm sure someone can do that, with all the specialists we have here in this wonderful community
"can't be that hard"?
How did you come to this conclusion?
Educated guess? Or just guess?
Well it would need to modify a little bit the bluetooth stack and emulate a HID keyboard, I guess.
Tonight I'm the Jeremy Clarkson of the day, with his most famous quote: "how hard can it be?!" when obviously it is very hard to do...
So I absolutely don't mean it is an easy thing to do, but I'm sure some experts in XDA-Dev are skilled enough to do it.
Hey, a man can dream, right?
Another option is to use a program like VNC to pilot your pc from the your raphael.
Used to do it with my old ppc (Toshiba e830). This works only if the computer you want to control is also in the same network (connected either through LAN cable or wifi).
Yes, I'm aware of a number of remote control solutions, but they all require an application to be run on the PC to be controlled. I'm really looking for a solutions which is purely based on HID. Like the Sony Ericsson remote control feature on the new phones. Great for presentations and Media Player. Any ideas?
Not exactly what you were talking about but...
http://www.virtual-laser-keyboard.com/
About the size of a lighter, and you can use it for you phone as well. (Picture attaching your phone to the TV in the back. Using your bluetooth to open a program on it. Then typing away on the scren with this "futuristic keyboard from the stars!!".... or something like that.)
that must be one of the most useless gadgets ever created
huge initial "wow" factor, but that is all
Useless? I don't know... over priced, and unnecessary maybe, but a portable full sized keyboard doesn't seem useless to me.
Have you tried it?
I have. Very stupid to tap a plain table, since you cannot feel anything (even the separation of the buttons) you make 60% mistakes.
Also, it is not even portable! You need a large flat surface to put it and to let it throw its beam.
(and one more thing to recharge)
I stand by my original wording.
nethopper said:
Yes, I'm aware of a number of remote control solutions, but they all require an application to be run on the PC to be controlled. I'm really looking for a solutions which is purely based on HID. Like the Sony Ericsson remote control feature on the new phones. Great for presentations and Media Player. Any ideas?
Click to expand...
Click to collapse
Well, HID implementation in Windows also includes programs and services that start with your windows. So if you have to install only 1 program to make it run I don't think it is a big deal.
It's 3 years I use my main computer this way. As I have a projector and don't want to start it every time I installed VNC server in my main computer (freeware) and VNC client in both my laptop and PPC, and it works pretty well (especially with Vista on my laptop, it runs pretty smooth).
@NLS:
Hmm, well from that description I will have to agree with you and add useless to my definition of the product as well.
@nethopper:
Yeah if you were looking for remote solutions I would suggest Logmein.com (the free version because I am cheap). If you want something that purely converts your phones keyboard into a computer keyboard... I found ( http://en.handybyte.com/cat/system-utilities/communications/blueremote/ ) for palm devices, this ( http://en.handybyte.com/cat/system-utilities/enhancements/ppc-tablet-remote-control-suite/ ) for ppc but over TCP/IP instead of bluetooth, and a patent showing that someone *Microsoft* is working/has worked on the idea ( http://www.freepatentsonline.com/y2008/0120448.html ) so the search continues
@FlippyTK: I'm aware of the VNC solution, but I'm really looking for something as slim and elegant as the software on the SE phones. There are situations where you don't want or can't install anything on the host PC.
@NetApex: Thanks, for the links. The MS patent is strange, how could they file something as obvious as this? There must be prior art... But the patent might be the reason why such a software does not exist. I guess everybody is afraid of the MS lawyers...
I'll keep searching, please let us know if you have the solution...
I'm not sure a pure HID solution is possible. If the Raphael keyboard is indeed a HID-capable device, then the phone itself is its host. Since you would have to go through the host (in this case, WM) to access the bluetooth stack, the most direct solution is a software "pass-through" program.
[edited]
The SE solution is using bluetooth HID emulation, so I will take a look into that.
For now, the TCP/IP solution shouldn't be a problem: you can setup a bluetooth PAN for TCP/IP connectivity.
For reference, one software that is closest to what you have in mind is Synergy, a similar host/client pass-through program that allows you to use one keyboard/mouse on multiple networked computers (without using hardware KVM switch, etc). It's only Windows/Mac/Unix, no PPC client, but maybe it will help point you in the right direction.
I found the following article which gives a nice overview of remote control solutions:
http://www.pocketpcmag.com/cms/blogs/3/remote_media_controllers_for_windows_mob
The software from Jerom does a nice job (http://www.jaylee.org/RemoteControl/) and I used it on my Prophet for some time. It requires for a small program to be installed on the host and it is easy to set up. But I had it hang a few times (typically in the middle of a management presentation) and therefore I abandoned it. The SE solution I had before was absolutely reliable and that's why I look for something similar for WM.
In principle, the solution is simple: Implement a HID device driver and pass key/touches to it. I did some programming for WM devices but I never tackled the bluetooth stack... there is a significant hurdle - otherwise someone else would have done this app already. ;-)
that would be cool
using the phone to open an app that is named "operate as bluetooth keyboard" and clicking start to take control of a home theater PC using teh TV as your monitor and the desktop media PC as the CPU and just using your phone as nothing more than a keyboard would be pretty slick.
golympio said:
Wow great idea, that would be nifty on my CarPC! I'm always looking for a smaller keyboard to fit there...
Can't be that hard, I'm sure someone can do that, with all the specialists we have here in this wonderful community
Click to expand...
Click to collapse
If you are so much interested in a small portable keyboard, why dont you try diNovo Mini from logitech http://www.logitech.com/index.cfm/keyboards/keyboards/&cl=roeu,en
Quite cool. I use it for my Media Center!
Cyber-mate said:
If you are so much interested in a small portable keyboard, why dont you try diNovo Mini from logitech http://www.logitech.com/index.cfm/keyboards/keyboards/&cl=roeu,en
Quite cool. I use it for my Media Center!
Click to expand...
Click to collapse
That is cool, but also pricey
UP!!!!!

register a bluetooth keyboard and mouse service

It would be very useful to have these mobile devices act as bluetooth keyboards and mouses. Has anyone written such a service?
I am familiar with the gremote project but i'm talking about a more general solution that would allow the mobile devices to be paired with all sorts of things.
The ultimate goal would be to have "keyboard" and "mouse" listed under the services broadcast by the mobile device. I found the following page that describes how to register bluetooth services:
http://msdn.microsoft.com/en-us/library/aa450140.aspx
But, unfortunately, i'm a Java developer and believe that it would take me too long to do this myself. Has anyone thought of doing something like this before? Is anyone interested in giving it a shot? It seems like it should be fairly straight forward to write such a service.
you can use GRemote if you want to use it as a keyboard and mouse.
Salling Clicker lets you use it as a mouse and media center controller.. and you can add many other scripts to control your comp.
or.. this:
http://www.jaylee.org/remotecontrol/
Thank you nir36.
I followed your link to jaylee's remotecontrol and had a look at what it does. It seems that both jaylee's solution and the gremote solution use a server/client model that rely on proprietary software running on both the server and the client. Unfortunately, that is not what i'm asking about.
What would be ideal is to emulate the functionality of a bluetooth keybaord and mouse that one can buy off the shelf and that does not require server software (something like Logitech diNovo Edge Bluetooth Keyboard). And this is why I was referring to "registering a bluetooth service" as a possible solution. Is this possible? Is it very difficult to accomplish?
I would, for example, like to be able to pair my mobile device with a PS3 and have it act as a bluetooth keyboard and mouse. But a PS3 is just one example. There are many other use-cases that can be satisfied by offering a generic solution that cannot be handled by the server/client model.
I have tried a lot of bluetooth remote controller softwares and searched for others as well.
unfortunatly, i don't know of any remote which doesn't require server side client.
to your question.. yes, i think it would be hard to accomplish as you need to have everything loaded on your ppc and send all data to the server.
I'm almost positive that someone would be able to develop such an application here as there are many gifted developers floating around this forum.
You might have to donate some for it tho.. it's not trivial.
Thanks again nir36.
I am willing to put in the time required to develop this but could really use some help getting started.
Can someone point me in the right direction? Is what i'm looking to do clear? Do others see this as being useful? Has anyone tried this before? If so, what were your pitfalls?
What documents/addresses can you share with me to help me get started? What IDE do you recommend?

Using HD2 as (native) Bluetooth Mouse

I searched this now for a few days on the web. I found plenty of programs doing lots of things coming close to what I am looking for but nothing exactly what I am looking for that would work.
I am looking for a program that turns my HD2 into a native bluetooth mouse. I don't need any remote control or remote desktop stuff, I want my HD2 to look like a regular mouse connected by bluetooth.
I found plenty of remote control apps, that would require a server installed to the computer I want to control with my HD2, however this is exactly NOT what I am looking for. I want to control any computer that supports generic bluetooth input devices, no matter if Windows, Linux, Mac, whatever without installing any additional software to the computer.
I found two programs, that claim to do that (mobileSRC RemoteMobile and MobileMouse) but neither will function on the HD2. RemoteMobile does not seem to support the Widcomm Bluetooth Stack and MobileMouse is not usable, because it's not designed for WVGA (at minimum, I cannot get past the Licence Disclaimer after starting the app, because I do not reach any controls to do so).
Is there anything out there that would do what I am looking for on a HD2?
+1 Looking for the same
http://gbmsoftware.com/
gdayhtc said:
http://gbmsoftware.com/
Click to expand...
Click to collapse
oh yeah, this is what I was looking for, thank you very much!
Which irony: I am still looking for what I described in my first post - and while I was searching for a program capable of doing this once again, I stumbled across my own old thread here
Sadly gdayhtc's solution wich seems to make 2 die 4 happy is exaclty what I am *not* looking for. I was aware of GRemote when I wrote this posting in january already. The point is, you need to install a server application on the host you want to use your phone with. The "talking" is done between the application on the phone and the server on the host as regular network traffic. This is not what I am looking for. What I am looking for is an application that basicly says "Hi [whatever operating system you are], I am a regular bluetooth mouse! Go ahead and load your appropriate drivers, so I can talk to you (just as any other bluetooth mouse would do)!" - and if there are Bluetooth touch pads, that the phone could emulate, that would be even better Basicly the phone will promote another bluetooth service to other devices that do a bluetooth service lookup stating that it can be a bluetooth input device. I can't believe nobody did something like that! Besides having to poke around in some bluetooth input device standards it seems like the much cleaner and more appropriate approach to use your phone as an input device over bluetooth compared to what GRemote and the others are doing.
I don't think there is such thing as a 'generic' blue tooth mouse (please correct me if I am wrong).
If you get a logitech one, it still loads its appropriate driver for the operating system you are using. Same for DELL (both use setpoint) and I'm sure Microsoft (and for the different models, there may be different drivers).
What I think you can best hope for is somebody to emulate one of these 'drivers', but at the end of the day, I would assume that some driver will have to be loaded on your pc/server.

bluetooth keyboard recommendation?

I'm really hoping to get a physical keyboard to work with my Eris. I'm even open to a USB hard-wired solution, it doesn't have to be bluetooth.
I own an I.Tech Virtual Keyboard, which the Eris can see and identify properly but not pair with (so far), and I was thinking of buying a Freedom Pro keyboard, simply because they have posted an Android driver on their web site.
I downloaded an Android bluetooth app called KeyPro, which lists the I.Tech VK as a supported device, but it doesn't seem to get the job done.
Anybody out there working on the same capability who can share what they've learned?
Thanks!

[Q] Using 10.1 (n8013) as input device in Win 7

I am slightly handicapped, very difficult to use left hand for typing. My job requires me to be on the computer all day. I am wondering if there is any way to use my 10.1 and it's S-pen (or any tablet with a pen) to be able to write on the tablet and use programs like Outlook, word and excel?
If this question should be asked in a different forum, someone please let me know.
Thanks
IIRC, the tablets can't be connected to a PC just to share their touch screen or any other input method.
(With the exception of it's camera)
To accomplish what you want you would have to run specialized software on both your PC and tablet, eg connect from your tablet to the PC using remote desktop software.
---
Well that's all for now, 3M
Click the THANKS button if i was helpful in anyway ^^
I believe there are some apps in the play store that will do this. You need to run a corresponding server application on the Windows machine for this to work.
It might be worth a try if you already have the equipment and don't want to spend any more money. However, I suspect you're not going to get a very satisfactory experience going this route.
Windows 7 does have some native support for pen/stylus input, including handwriting recognition. Windows 8 is probably even better for this, although whether the desktop pen support is enhanced I'm not sure. In any case, I think you'd probably be better served getting a dedicated tablet for Window, i.e. a Wacom tablet or something similar. Wacom makes some very expensive tablets (Cinteq (sp?) and Intuos) for pro designers/artists but they also have more reasonably priced consumer tablets (the Bamboo line) which should be adequate for your purposes and these will have very mature Windows drivers.
I'd also suggest, however, that you do a little research on dedicated one-handed typing hardware. I know there are one-handed keyboards which are essentially the same as a standard qwerty keyboard cut in half and you would hold down a button with your thumb that would switch between the native key or the key in the mirror position. If you happen to know touch typing this type of keyboard is probably not hard to learn and may be your best bet. If you're not already a touch typist you should also research other types of "chording" keyboards which use combinations of buttons or switches to specify input characters. There are a variety of these and several are designed for one handed use.
Many thanks for the info. I got the Microsoft android remote desktop connection app from the play store to try it out before posting this thread. I am just dense enough to not be able to figure out how to set up the RDC on my home pc. Wanted to see if it would work before approaching the it guys at work.
I wondered if the Surface tablet would do better with the office suite. Something tells me there could be a real need for something like this to work if someone could figure it out.
I'll look into the keyboard option again (I think I did once before).
tmagritte said:
I believe there are some apps in the play store that will do this. You need to run a corresponding server application on the Windows machine for this to work.
It might be worth a try if you already have the equipment and don't want to spend any more money. However, I suspect you're not going to get a very satisfactory experience going this route.
Windows 7 does have some native support for pen/stylus input, including handwriting recognition. Windows 8 is probably even better for this, although whether the desktop pen support is enhanced I'm not sure. In any case, I think you'd probably be better served getting a dedicated tablet for Window, i.e. a Wacom tablet or something similar. Wacom makes some very expensive tablets (Cinteq (sp?) and Intuos) for pro designers/artists but they also have more reasonably priced consumer tablets (the Bamboo line) which should be adequate for your purposes and these will have very mature Windows drivers.
I'd also suggest, however, that you do a little research on dedicated one-handed typing hardware. I know there are one-handed keyboards which are essentially the same as a standard qwerty keyboard cut in half and you would hold down a button with your thumb that would switch between the native key or the key in the mirror position. If you happen to know touch typing this type of keyboard is probably not hard to learn and may be your best bet. If you're not already a touch typist you should also research other types of "chording" keyboards which use combinations of buttons or switches to specify input characters. There are a variety of these and several are designed for one handed use.
Click to expand...
Click to collapse

Categories

Resources