none
Someone make a movement--keyboard mapping program? so every game can be played with kinect RRS feed

  • Question

  • i mean make the movement input related to the keyboard(or mouse) output.

    for example,running at feet movement result in the keyboard "W" output (most of the games using "W" button to make character moving forward.),so that we run make the character run,and slash with right arm movement result in the "click left mouse button" output(most of the games using left mouse button to control the character attacking),so that we slash right arm the character attack enemy with right hand weapon.etc....etc....

    if we did this ,we already can play most of the games in kinect way.that will be great.

    i think it will be simple and very useful.


    • Edited by WangZL3333 Friday, August 10, 2012 10:46 PM
    Friday, August 10, 2012 10:45 PM

All replies

  • You need to figure out your x,y values for arm and then press that keyboard button atuomatically using sendinput as necessary. Try out kinect mouse as a help except look up keyboard samples and change kinect mouse to use the keyboard.  Change the x,y values for right click to be a specific key as a test in the kinect mouse code until you get it right.

    kinect mouse link:

    http://kinectmouse.codeplex.com


    Once you eliminate the impossible, whatever remains, no matter how improbable, must be the truth. - "Sherlock holmes" "speak softly and carry a big stick" - theodore roosevelt. Fear leads to anger, anger leads to hate, hate leads to suffering - Yoda. Blog - http://jefferycarlsonblog.blogspot.com/

    • Proposed as answer by The Thinker Tuesday, August 14, 2012 2:18 PM
    Tuesday, August 14, 2012 2:18 PM
  • I'm doing somthing like that. Please take a look.

    http://ktoi.site90.com

    Friday, August 17, 2012 2:51 PM
  • BehnamGF try changing the x,y if code statement in the kinectmouse sample link above to move according to movement (its basic movement but will help get you started and then you might need to make some gestures to continue).

    Once you eliminate the impossible, whatever remains, no matter how improbable, must be the truth. - "Sherlock holmes" "speak softly and carry a big stick" - theodore roosevelt. Fear leads to anger, anger leads to hate, hate leads to suffering - Yoda. Blog - http://www.computerprofessions.co.nr


    • Edited by The Thinker Friday, August 17, 2012 7:02 PM
    Friday, August 17, 2012 7:01 PM
  • You are looking for SendInput. I used it in some projects for sending keystrokes to games (Trackmania and F1 2010). You can download the code for Trackmania. Please note to Sleep(time_in_ms); before releasing the button.
    Saturday, August 18, 2012 2:35 PM
  • Thank you The Thinker for your attention. I think you mean mouse movement with mode 1 in KTOI. I’ve added three modes to move a mouse on screen.

    Mode 1: Mouse pointer moves relatively to the position of the user's hand.

    Mode 2: Mouse pointer moves according to the direction that user's hand shows.

    For example User should move his/her hand to left and outside of the “zero area” to move mouse pointer to the left. It looks like the moving mouse with NumPad keys.

    Mode 3: Mouse pointer moves relatively to the direction of the user's hand.

    The three modes will move Mouse pointer if the user’s hand is in the defined area at “Area” tab.

    I had to put that limitation because in a game user may not want to move Mouse pointer.

    I’ve added another parameter that changes mouse sensitivity according to the z position of the user’s hand. I’m still working on it. It’s not as good as I want. It helps to better aiming. Do you have any other idea that helps the user to have a better aiming and of course could move its screen easier? If I reduce Mouse sensitivity aiming becomes better but screen moves slower.

    Please download the last update. I’ll try to update the http://ktoi.site90.com/ weekly.

    Monday, August 20, 2012 2:42 PM
  • Im thinking of the head is for aswd keys (maybe im thinking of mouse and have this backwards) if the kinect user tilts head up then the character looks up in the game, looks down the character in the game looks down. For reference i have an xpadder program configuration file thats mapped up to an xbox controller so using sendinput with those keys would help. I made the configuration file based off starwars battlefront for pc so just try to emulate the configuration in your program and you will have made an program that works with a game. 

    Sorry forgot for aiming use the persons hand like their holding a gun but did you see the halo reach kinect spoof on youtube probably something like that? 

    Try working on that but heres my blog post when i was using xpadder:

     http://jefferycarlsonblog.blogspot.com/2012/08/xpadderwhy-its-useful-for-gaming-on-pc.html

    I can email you the configuration file for that program I made but you just need to figure out your poses and the rest can be done with sendinput (can also use dotnet frameworks sendkeys but theirs no way to know if it worked properly).

    The configuration file for that program is for reference for this project.


    Once you eliminate the impossible, whatever remains, no matter how improbable, must be the truth. - "Sherlock holmes" "speak softly and carry a big stick" - theodore roosevelt. Fear leads to anger, anger leads to hate, hate leads to suffering - Yoda. Blog - http://www.computerprofessions.co.nr


    • Edited by The Thinker Tuesday, August 21, 2012 12:26 PM
    Tuesday, August 21, 2012 12:24 PM
  • Thank you the thinker.

    I think moving head for aswd or moving screen, loses the player focus on the game but I will try it maybe something comes up.

    I’ve downloaded the xpadder and I’m going to take a look at it. It would be great if you send me the configuration file. Here is my email bghf2011@yahoo.com.

    Well, as you may know YouTube, FaceBook, Twitter and even the blogspot link that you’ve wrote are f-ilt e r e-d in this country so I have problem with watching the Youtube video but I read the pages with my PHP web browser.  I wish I could watch the movie. Is there something in the movie that it could help me?

    Thanks again.

    Wednesday, August 22, 2012 2:04 PM
  • What I meant above in last post is the settings mostly follow fps game settings for mouse and keyboard but each game is different (I.e aswd is used in most pc fps games). I will email you the config file here within another day or two because the last week I have been getting ready for my college courses. My passion is to become a game developer so helping you with your program might help me get valuable experience for later.

    Once you eliminate the impossible, whatever remains, no matter how improbable, must be the truth. - "Sherlock holmes" "speak softly and carry a big stick" - theodore roosevelt. Fear leads to anger, anger leads to hate, hate leads to suffering - Yoda. Blog - http://www.computerprofessions.co.nr


    • Edited by The Thinker Wednesday, August 22, 2012 2:24 PM
    Wednesday, August 22, 2012 2:23 PM