I'm an engineering student, and im working on a graduation project, and i just had an idea and need to ask this question.
Lets say we have 3 bottons, (X,Y,Z) 4 others UP,DOWN,LEFT,RIGHT, ANALOG(All directions)
If i press X, is it possible to associate it to specific area on the screen?
Is it possible to move a specific character in any game up/down/left and right using a hardware device?
Also moving the camera in all directions using the analog stick?
If i sent a signal from the device lets say X, will it communicate with the game it self or the device? Is it possible to make it communicate with the device a if i pressed X it press a specific are on the screen?
Sorry for the long post but i just had the thoughts and i want to know the possibilities of it.
Internal or external devices generate scan codes.
These are converted in /system/usr/keylayout/identifier.kl to keycodes.
Different devices (as long as they have different USB VID/PIDs) can have different maps.
Ultimately, you are dealing with keycodes.
The app would have to know that F1-6 deal with goblins on the left side of the screen
and that F7-12 deal with unicorns on the right side of the screen.
A short answer: The app would have to be aware.
So the hardware must speak to the app files im dealing with, would an emulator solve the problem?
Sent from my GT-I9100 using Tapatalk 2
It's not a question of hardware vs. emulator.
You can have anything send any keycode that you want.
Code:
adb shell input keyevent 4
Will send a "Back" key.
Something has to interpret that.
Applications are written with a fixed understanding of keycodes.
Ok, if you want you can hack something to turn keycodes into touch events.
So "F1" would generate a touch down then up at the coordinates of 234, 132.
You'd need to do some low-level hacking or else hack the application.
If you were going to hack the application, it would be just easier to modify it so "F1" does what you want already.
I appreciate ur awesome reply sir you saved alot of time, ill get a developer to do that time to move fpr the next step, thanks again!
Sent from my GT-I9100 using Tapatalk 2
Related
Hi Guys
Wondered if anyone knew of a way of locking down all the hardware buttons with a registry change on WM5?
Or at least specific ones?
Reason being I'm developing a flash lite data driven app for a device specific service with issued handsets to users during a corporate event - they need to be "locked down" to stop the user activating the phone using the "make call" buttons etc.
Although I can make the Flash app run "full screen" I can't stop the other buttons switching to other apps.
Regards
Derek
2 suggestions.
1 if you are trying to gain lock out control A_C's S2U2 program accomplashes this. If you need something other than his program I recommend that you PM him and asked him out he accomplished it with his lock.
2 you may want to try a program like hbutton. It would allow you to assign controls of the buttons to certain actions. One of the action options could be to do nothing. You could set them all to that.
Try using GXOpenInput();
it will redirect all input screen/keys to your app and then you can ignore then if you want.
Chris
chrisstavrou
I've just googled that command and found this page...
http://msdn.microsoft.com/en-us/library/ms831632.aspx
Seems like a good solution - only problem is, I'm not a .Net developer, so how would I pass this into the Flash Lite App as a .swf is loaded on the handset?
is there a way of passing this system variable in almost like a command-line before the app is opened?
Or would I need an executable on the PocketPC to somehow pass that in opening flashlite and the .swf in one go?
Thanks
Thanks for all the useful suggestions, I'm now following them up - cheers guys!
Is there a way to enable more hardkeys using some software or virtualization trick???
playing Java games is a nightmare.
I use AEBPlus to map the volume up & down key to act as the Left and Right softkeys which is fine until you need to type in a name for your character in some games....
Another Thing:
why is there no good java emulator for HTC devices?
even a low cost, clone phones could run some java games while it does not run in jBed or jBlend. what gives??? i thought that PPCs would be more better in running java apps.
why not we all try to develop an input system for devices without hardware phone keypad?
------->Just my Imagination.............zzzz.......---------->
#let's suppose we coded a program abc.exe which runs in the background when executed...
#the abc.exe is, of course, configurable. we can map a hardware key, say, the long-press of call (green) button which will invoke the abc.exe which will display a phone keypad with a transparent background phone keypad and long-press again to send it to the background.
#say we run a jar midlet (java program) and need input for names...
#we long-press the call button which brings up the abc.exe application.
#we click on the number or letters and which gets typed into the java app.
wouldn't that be nice????
I was wondering that other phones having hardware keypads send a hex value to the os each time a key is pressed. As a whole, what we need is an app that interprets the input using a virtual keypad (the above abc.exe) and sends the required signal, hex, or whatever the program (java application) is bound to recognize and accept it as an input.
Knowledge/Tools Required:
#some knowledge in C++ or java.
#a utility for listening to keystrokes of devices with hardware keypad
#...............
#.................
until then, i dream on....and on.....
P.S: don't wake me from my dream to tell me that somebody has developed such software....
P.S: sorry if i am posting in the wrong section.
Actually buddy the prob u r facing has been already solved and also someone made one app just like ur imagination but i dont remeber the thread topic u can search if i again stumble upon it i will share
Hello Everyone,
I'm a graphic designer.. and I (for some reason ) am so sure this is possible on an Android phone... but the question is.. is it worth their time? i hope my $20 dollars and other possible donators... can help answer that question!!
Here's The Concept: (sorry for the long essay)
I would like to use my android's touch screen to be my little helper when i'm on my graphic programs... either photoshop/illustrator.. even my html programs.. i would like a dedicated screen with Tools and Options that i usually use...
This could be done in many ways.... one would require a "server" application and displays the shortcuts according to the App in focus...
or...
You can make android as the HID thing (Sorry!! Thats as technical as i can get..)....so it sends "macros" to photoshop ... but this doesn't really require a server cuz HID thing shud be multi platform?? if i'm not mistaken...so instead of detecting.. there would be applications we choose which will show the appropriate buttons....
Here's one example: Photoshop
While one Photoshop, I would like Cuboid Buttons for Basic Tools(Marquee, Paint Brush, Eraser, Move tool..... ) on an array of screens and with fixed items like the "Undo" or "Layers" "Characters"... which will bring up the proper dialogue...
I'm willing to donate 20$ to the person who can do this ... i hope others can feel my frustration and want to help too... so we can get this going...
Plus.. there is a "Clingo" accessory for phones that can attach any device to any monitor!!! from the looks of it... it could very well work with my idea!!
Thank you for taking your time reading my big essay!!! (sorry)
I may not be a developer for android, but I know that if anyone does it, it'll cost them more than $20 of their time...
I think you should learn the key shortcuts or buy a keyboard with extended keys that you can program.
@DKuntz2 i know it will be more than 20 dollars... thats why i started my donation at 20 ... whoever is feeling like donating to this cause... can hopefully make it worth for the developer....
@jobarjo Yeah, I already know the keyboard shortcuts ... but theres alotta features on the photoshop that are not possible through a simple keyboard shortcut... and besides.. i only used Photoshop as an example, this can be implemented with Word Processors... Web Browsers.... Full screen Media player with controls on the side... I don't know theres alotta potential...
i just hope people find this 'donation' worthy as i do.... a guy can hope right?
It sounds like what you really need is the Optimus Maximus keyboard; http://www.artlebedev.com/everything/optimus/
Thanx.
but I am already familiar with the optimus..and that it can change the whole keyboard to pictures...anyways i just thought the guys would want this on their android phone.. rather than wasting $2400 US on that.!!!
I hope ill be able to make this on Google's App Inventor...
Peace.
solidkundi said:
I hope ill be able to make this on Google's App Inventor...
Click to expand...
Click to collapse
You can't.
You need a "server" application on the computer which you can make or interact with a GAI app.
You also may need to interact with Photoshop in a way because its not just sending keyboard shortcuts because some tools don't have that.
I am unsure if you need to make a photoshop plugin for that or you can call some functions in the photoshop.exe.(I don't even know how my 3DConnexion SpaceNavigator calls the functions and such in Photoshop)
Google apps doesn't allow this functionality and I am unsure if it ever will(and even if it will it won't be soon)
well that sucks doesn't it...
thanks for that.. i hope i'll be able to make something out of google inventor ... i have soo much ideas... but they're all either novelty or something very specific to me...
This would be really useful, but hard, the way I see it you could do it using HID:
An android App that communicates as a slave device to a desktop machine.
Could use bluetooth and pretend to be HID but you'd have to write the HID layer from scratch in java as Android only does HID as the master (and even then only in CM6)
This would send keypress events which may be enough for some apps, but generally you'd need to map those events to some other combination of actions, under windows a combination of http://www.autohotkey.net/ and http://www.autohotkey.net/~Micha/HIDsupport/Autohotkey.html may do the job.
Implementing HID under Android would be the had part (for me). The rest would need to be configured per-feature-per-app
I do know there are several keyboard applications availble so keyboard shortcuts and keypresses aren't really the problem.
I am just unsure how you would link into photoshop tools without key combos.
You can get for iphone, good idea saves a lot of time
If someone is skilled enough to edit this to something with a Tools gui or allowing to asign a picture and hotkey to a button on the screen and pass on the hotkey to the server..
http://code.google.com/p/remotedroid/
And maybe remove the mouse functionality or put it in a tab.
I think ... we can make an "Action" file.. for most of the commands... and then send the respective keystroke .... that could work also..... and like u said have tabs
but i wudn't need mouse in there...
Hi, I'm new here. i have just received my Atrix two days ago along with my webtop. i am very into gaming and i would love for this to be possible to develop.
i would like to ask developers to try to create some kind of "program" or whatever it would be called to play on my laptop and play touch screen games and Program Coordinates to a Mouse click for a Specific Key. i play allot of touch screen games and i like RPG style games. the problem i run into is that i cannot press the desired buttons fast enough and or even play some because it is not incorporated into playing with a keyboard.(i know android games will in the future but i mean for the games/apps that are not).
Exrogram a specific coordinate on a game or all games to a specific Key, (Any location on the screen to the "F1" key on my keyboard)... or any key for that matter.
(not tab,shift, esc ect)... just keys that we could use to do specific actions without having to click them with the mouse.
i would love if a developer could look into this and/or create this program allowing us Atrix/Keyboard users to basically "right click" the mouse(or any other way... it does not matter to me) on a coordinate during a game and have the option to set that coordinate to act as if the mouse had clicked that specific location on the screen<without the mouse actually moving to that location at all.
there are many things this could benefit from this. playing and using apps, games at ease and maximizing the usage of this device.
PLEASE HELP US!!!!!!!!! I have talked to a few Aatrix owners and even Emailed Motorola and Android Developers and they think its a great idea and even said that it is capable and would probly be implemented in the future because it would be so useful. the only thing is it is going to take them a long time and i know that it will be Created by an independent developer way before anyone else.
so i ask for your assistance if your a Developer and CHALLENGE you and developers alike to be the first to make this ingenious capability being possible.
really... i was assuming devs would jump on this post... at least state there opinion. so nobody has anything to say about this? i thought it was a great idea. (rather possible or not) i was thinking this would optimize gaming on the webtop Tenfold. (even though games are not smooth on it AT ALL. we would still like to be able to play them easily other then click, click, click and only more clicks other then some games being able to utilize movement keys [arrows or w,a,s,d])
Cool stories bro
jimmypopulous said:
Cool stories bro
Click to expand...
Click to collapse
umm... ok...
Wow, I haven't been on XDA forums since forever!
Sorry if this is not in the right thread, but I really am not sure where to start for this, but XDA-Developers is an awesome and active community, and you guys usually get the job done. If no one here can help, perhaps someone could point me in the right direction of a website or forum to request for this sort of thing?
Ok, What I am looking for is someone willing to create a program that acts as sort of a launcher/dashboard type thing for windows. This program would basically be launched at the push of a button, and allow for a customizable set of options to appear anywhere within windows, most notably in games, and to be navigated via controller. I am thinking of something similar to the Xbox 360 controller's "guide" button, or PS3's "PS" button. both bring up a menu with options for convenience, and I am surprised to have not found anything like this for PC Gamers. I personally have an HTPC setup where my machine is hooked up to my tv, and having this sort of feature would be a great addon for my setup!
So basically, pressing the "home button" on said controller, would bring up a pop up menu, allowing options such as launching a customized program/utility/etc (perhaps a quick way to launch steam, or even steam big picture mode); being able to shutdown, restart, or even sleep PC; shutting off controller (if its a wireless controller of course); or even an option to reassign controller inputs, similar to how PS3 allows (probably again specifically for wireless controllers); or even allowing quitting of the currently running game/program. Of course these are just some options that could be done, as I'm sure others could think of even better ideas than myself.
Obviously, I know nothing about programming myself, so I have no real skill to do this sort of thing, but if a developer or someone willing were to be able to make something like this, and it work pretty good, id be more than happy to donate to the person. I know PC gamers can be vastly different from one another, so someone else's need (including myself) would probably seem rather silly and pointless to another. Im sure desktop gamers would not find much use for this. But then again I think there are others that would, and I personally think HTPC gamers specifically would appreciate a program like this. Again, I don't know much about programming, but I would assume creating a simple but customizable pop up menu would not be too difficult. I think the hardest part would be finding the function call for the xbox guide button, and whatever commands to call to turn off said controllers. But creating options like custom program launcher, shutting off pc, etc, are probably a lot easier. I personally use PS3 controllers via Bluetooth, but they just emulate a xbox 360 controller on my pc, so I think my only difference would be a command specific to PS3 controllers to turn off said controller.
Anyone else think this is a good idea? I've asked several of my gaming peers whom all seem to agree this would be a cool idea to be able to have. This could technically bring a more console-like experience to PC gaming as well. If no one here is interested, or able to help, I would much appreciate anyone willing to direct me to another website or forum that possibly could help me? Much thanks guys! Let me know what you think.
Any takers? Anyone? Someone at least give me an idea of where else I could go to request something like this? thanks
I don't think there is a way to intercept the guide button being pressed on an Xbox controller easily, but steam big picture somehow does it so it must be possible.
Otherwise it wouldn't be the hardest thing in the world to do.
There's a program called "xboxext" by a djpety that utilizes the guide button by popping up a window allowing you to turn off your Xbox controller.
I haven't had any luck in getting a reply from him, but it seems he has managed to figure out how to get the guide button to work. Apparently its an undocumented API call, which is probably the same thing big picture mode in steam uses.
Either way, if someone were able to create this particular utility using another button, it would be a great start. Long term goal would be to allow function via guide button, but it could be any button for the time being.
Hmmm.... Anyone?