How do u get multiple keyboard input?

is there a easy way to do this?
for ex: while pressing the right key to move a sprite i press the space bar to make it jump

You could have some booleans that keep track of which buttons have been pressed. For example:
boolean rightArrowIsPressed = false;
boolean spaceBarIsPressed = false;You can set them to true in the keyPressed method, then false in the keyReleased method. Does that make sense?

Similar Messages

  • How do I get multiple return results from a function

    IDBASKET IDSTAGE DTSTAGE
    3 1 24-JAN-03
    3 5 25-JAN-03
    4 1 13-FEB-03
    4 5 13-FEB-03
    5 3 21-FEB-03
    I input is a single IDBASKET number from this table and this function works fine only if it has one IDSTAGE per idbasket. (idbasket#5)
    But how do I get it to return a result for an IDBASKET when it has multiple IDSTAGE? (idbasket#3 & 4)
    THANKS MUCH,
    MAT
    SQL> CREATE OR REPLACE FUNCTION status_desc_sf
    2 (p_code NUMBER)
    3 RETURN VARCHAR2
    4 IS
    5 lv_output_txt VARCHAR2(30);
    6 BEGIN
    7 IF p_code = 1 THEN lv_output_txt := 'Order submitted';
    8 ELSIF p_code = 2 THEN lv_output_txt := 'Accepted, sent to shipping';
    9 ELSIF p_code = 3 THEN lv_output_txt := 'Backordered';
    10 ELSIF p_code = 4 THEN lv_output_txt := 'Cancelled';
    11 ELSIF p_code = 5 THEN lv_output_txt := 'Shipped';
    12 ELSE lv_output_txt := 'No information';
    13 END IF;
    14 RETURN lv_output_txt;
    15 END;
    16 /

    Duplicate thread:
    How do I get multiple return results from a function

  • How do you get multiple screens on the iPad with iOS 5.1.1?

    How do you get multiple screens on the iPad with iOS 5.1.1? We just upgraded to iOS 5.1.1, and we see no way to be able to open multiple screens at once. Before, there was a small button in the upper portion of any window. That button would take you from a particular window to the place where multiple windows are open at once. Does it do it differently? Is there a special setting button that we have missed? Thanks!
    One more thing: We are only talking about Safari.

    Guitaristica-
    I don't think I've seen a way to have separate Safari screens visible at the same time.  The small thumbnails were deleted in one of the iOS updates, and replaced with a multiple "Tab" system.
    You can open an additional screen in a new "tab" by pressing and holding on a link until a new menu comes up.
    Fred

  • How do I get my keyboard back in contacts on my iphone?

    How do I get my keyboard back in contacts on my iphone?
    It was working yesterday and not today.

    I too have this issue.  Have not been able to find the correction. Grrrrr. I have added contacts fine since downloading new system version. But it no longer gives me Tate keyboard to add contact with. What now?

  • On my new iPhone, at the Apps store, I tried to make a purchase, the popup screen shows my Apple ID and asks for my password, but no keyboard appears so that I can enter the password.  How do I get the keyboard to appear??

    On my new iPhone, at the Apps store, I tried to make a purchase, the popup screen shows my Apple ID and asks for my password, but no keyboard appears so that I can enter the password.  How do I get the keyboard to appear??

    On your iPad, delete the existing account then sign back in with the new ID and password.

  • How do I get the keyboard on my macbook pro to light up?

    how do i get the keyboard on my macbook pro to light up?

    Welcome to Apple Support Communities
    What MacBook Pro have you got? Only Unibody MacBooks Pro (Late 2008 and newer) have a backlit keyboard. If you have one of these MacBooks Pro, you can set up its illumination in System Preferences > Keyboard. See > http://support.apple.com/kb/ht4882

  • TS3274 how do I get the keyboard to come up -- without re-botting?  On the ipad2, it occasionally freezes and does not permit the keyboard to appear

    how do I get the keyboard to come up -- without re-booting?  On the ipad2, it occasionally freezes and does not permit the keyboard to appear

    Have you the latest iOS version (5.1.1)? If not, an update might solve the problem.

  • HT4623 How do I get The keyboard to appear?

    How do I get the keyboard to appear?  I seem to have lost the use of it.

    Usually, just tap in a text box.
    however if you have a bluetooth attached and active then it'll prevent your onscreen keyboard from popping up

  • How can i get my keyboard to be recognized by the imac?

    how can i get my keyboard to be recognized by the desktop imac?

    Hello emanson805,
    Thanks for using Apple Support Communities.
    If you need to set up your Apple Wireless Keyboard with an iMac, then please follow the directions below.  Please note that if the keyboard was previously paired with another device, you will need to unpair it before being able to pair with your iMac.
    Bluetooth: How to set up your Apple Wireless Keyboard - Apple Support
    Have a good one,
    Alex H.

  • When I get a call they say press one for english.How to I get the keyboard up?

    How do I get the keyboard when I am talking on the phone?

    The keyboard should automatically show up when you answer the calls, but what Johnathan said is correct.

  • HT1338 My keyboard does not have the number sign: # . How do I get my keyboard to type this?

    My keyboard does not have the number sign:  # . How do I get my keyboard to type this?

    It depends on your keyboard layout.
    From the menu bar, select
     ▹ System Preferences... ▹ Keyboard ▹ Keyboard ▹ Show Keyboard & Character Viewers in menu bar
    Now select
    Show Keyboard Viewer
    from the menu with a keyboard icon in the menu bar, towards the right. By pressing modifier keys, you can see what characters correspond to any key combination. You can also produce a character by clicking it in the viewer.

  • How do I get the keyboard in the notes section of the ipad to pop up? It was working all day today and then stopped working.

    How do I get the keyboard in the notes section of the ipad to pop up? It was working all day today and then stopped. 

    I find it's touchy.  Tap anywhere on the note to bring up the keyboard. If you tap and hold, you won't bring up the keyboard. Just tap momentarily.
    If you can't get it to work, try restarting your iPad.  Press and hold the Sleep/Wake button until a red slider appears, then drag the slider. Then press and hold the Sleep/Wake button until the Apple logo appears.
    If it still doesn't work, try resetting your iPad.  Press and hold both the Sleep/Wake button and the Home button for at least ten seconds, until the Apple logo appears.

  • How do I get my keyboard back down to the bottom of my screen, How do I get my keyboard back down to the bottom of my screen, How do I get my keyboard back down to the bottom of my screen, How do I get my keyboard back down to the bottom of my screen

    How can I get my keyboard down to the bottom of my screen

    From PJL123's post...
    Call up the keyboard so that it is visible. At the very bottom right of the keyboard is an icon that looks like the keyboard with a down arrow. Touch and hold the icon and a small popup will appear giving you the choice to undock(move it up to the middle of the screen) or split it. If you do either one on those options, you can put it back where it belongs by touching the icon again, and selecting dock.

  • How do i get multiple internet screens going on Safari?

    How do I get multiple internet screens going on Safari at the same time?

    Do you mean "New window" (command-n) or "New tab" (command-t)? Are you in "Full Screen Mode"? If so, hit the escape key to exit that mode before making a new window or tab.  Use Expose/Mission Control to manage windows.
    charlie

  • How can i get multiple photos onto photoshop?

    How do I get multiple photos on to photoshop. I want to work on them together and move one part of one photo onto the other.

    Start by asking in the Photoshop forum
    This forum is actually about the Cloud, not about using individual programs
    For product specific questions you may do better in the specific product forum
    If you start at the Forums Index http://forums.adobe.com/index.jspa
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says ALL FORUMS) to open the drop down list and scroll
    http://forums.adobe.com/community/photoshop

Maybe you are looking for