I cant read KEY_NUM0...KEYNUM9

Left, right, up and down are working perfectly but the KEY_NUMx not, here is the code
int l_iKeyState = getKeyStates();          
m_Input.ReadInput(l_iKeyState);ReadInput looks like this:
void ReadInput(int iKeyState)
     if((iKeyState & GameCanvas.LEFT_PRESSED)  != 0)
          KEY_LEFT = true;
     if((iKeyState & GameCanvas.RIGHT_PRESSED) != 0)
          KEY_RIGHT = true;
     if((iKeyState & GameCanvas.UP_PRESSED)        != 0)
          KEY_UP = true;
     if((iKeyState & GameCanvas.DOWN_PRESSED)  != 0)
          KEY_DOWN = true;
     if((iKeyState & GameCanvas.KEY_NUM0) != 0)
          KEY_0 = true;
     if((iKeyState & GameCanvas.KEY_NUM1) != 0)
          KEY_1 = true;
     if((iKeyState & GameCanvas.KEY_NUM2) != 0)
          KEY_2 = true;
     if((iKeyState & GameCanvas.KEY_NUM3) != 0)
          KEY_3 = true;
     if((iKeyState & GameCanvas.KEY_NUM4) != 0)
          KEY_4 = true;
     if((iKeyState & GameCanvas.KEY_NUM5) != 0)
          KEY_5 = true;
     if((iKeyState & GameCanvas.KEY_NUM6) != 0)
          KEY_6 = true;
     if((iKeyState & GameCanvas.KEY_NUM7) != 0)
          KEY_7 = true;
     if((iKeyState & GameCanvas.KEY_NUM8) != 0)
          KEY_8 = true;
     if((iKeyState & GameCanvas.KEY_NUM9) != 0)
               KEY_9 = true;
}and finally the event im doing for the keys:
if(p_Input.KEY_2)
     TurnLeft();
if(p_Input.KEY_6)
     TurnRight();
etc...

hmm oke, still having some trouble getting it 2 work,
void ReadInput(int iKeyCode)
     if(iKeyCode == GameCanvas.KEY_NUM0)
          KEY_0 = true;
     if(iKeyCode == GameCanvas.KEY_NUM1)
          KEY_1 = true;
     if(iKeyCode == GameCanvas.KEY_NUM2)
          KEY_2 = true;
     if(iKeyCode == GameCanvas.KEY_NUM3)
          KEY_3 = true;
     if(iKeyCode == GameCanvas.KEY_NUM4)
          KEY_4 = true;
     if(iKeyCode == GameCanvas.KEY_NUM5)
          KEY_5 = true;
     if(iKeyCode == GameCanvas.KEY_NUM6)
          KEY_6 = true;
     if(iKeyCode == GameCanvas.KEY_NUM7)
          KEY_7 = true;
     if(iKeyCode == GameCanvas.KEY_NUM8)
          KEY_8 = true;
     if(iKeyCode == GameCanvas.KEY_NUM9)
          KEY_9 = true;     
and in GameCanvasprotected void keyPressed(int keyCode)
     m_Input.ReadInput(keyCode);

Similar Messages

  • I got an itunes card cant read letters apple sent me a form in the email was no form just a link that brought me to support page i wasted 25$ for this card i just want anotheer code

    i got an itunes card and i cant read the letter i wasted 25$ for nothing since i cant use it i called customer support they said they sent me a form in my email to fill out there was no form in my email to fill out just a bunch of links that brought me to the main screen in the support page ive went all throughout the support page and cant seem to find this form or something that will help me all i want is a new code so i can use this card can you please just send me a new 25$ code

    See:
    iTunes Store: Invalid, inactive, or illegible codes

  • Hi im having huge problems trying to install flash for my mac 10.5 imac, iv gone through the internet and tried all of the solutions, everytime i try to install flash it says cant read the download file, or it just wont install, anybody plz help!

    hi im having huge problems trying to install flash for my mac 10.5 imac, iv gone through the internet and tried all of the solutions, everytime i try to install flash it says cant read the download file, or it just wont install, anybody plz help!
    iv unistalled flash, iv checked plug ins it just wont work,

    It would have been a great help to know precisely what Mac you have, so some of the following may not apply:
    You can check here:  http://www.adobe.com/products/flash/about/  to see which version you should install for your Mac and OS. Note that version 10,1,102,64 is the last version available to PPC Mac users*. The latest version,10.3.183.23 or later, is for Intel Macs only running Tiger or Leopard, as Adobe no longer support the PPC platform. Version 11.4.402.265 or later is for Snow Leopard onwards.
    (If you are running Mavericks: After years of fighting malware and exploits facilitated through Adobe's Flash Player, the company is taking advantage of Apple's new App Sandbox feature to restrict malicious code from running outside of Safari in OS X Mavericks.)
    * Unhelpfully, if you want the last version for PPC (G4 or G5) Macs, you need to go here:  http://kb2.adobe.com/cps/142/tn_14266.html  and scroll down to 'Archived Versions/Older Archives'. Flash Player 10.1.102.64 is the one you download. More information here:  http://kb2.adobe.com/cps/838/cpsid_83808.html
    You should first uninstall any previous version of Flash Player, using the uninstaller from here (make sure you use the correct one!):
    http://kb2.adobe.com/cps/909/cpsid_90906.html
    and also that you follow the instructions closely, such as closing ALL applications (including Safari) first before installing. You must also carry out a permission repair after installing anything from Adobe.
    After installing, reboot your Mac and relaunch Safari, then in Safari Preferences/Security enable ‘Allow Plugins’. If you are running 10.6.8 or later:
    When you have installed the latest version of Flash, relaunch Safari and test.
    If you're getting a "blocked plug-in" error, then in System Preferences… ▹ Flash Player ▹ Advanced
    click Check Now. Quit and relaunch your browser.
    You can also try these illustrated instructions from C F McBlob to perform a full "clean install", which will resolve the "Blocked Plug-in" message when trying to update via the GUI updater from Adobe.
    Use the FULL installer for 12.0.0.44:  Flash Player 12 (Mac OS X)
    And the instructons are here: Snow Leopard Clean Install.pdf
    (If you are running a PPC Mac with Flash Player 10.1.102.64 and are having problems with watching videos on FaceBook or other sites, try the following solution which fools the site into thinking that you are running the version 11.5.502.55:)
    Download this http://scriptogr.am/nordkril/post/adobe-flash-11.5-for-powerpc to your desktop, unzip it, and replace the current Flash Player plug-in which is in your main/Library/Internet Plug-Ins folder, (not the user Library). Save the old one just in case this one doesn't work.

  • External hard drive seagate 3.0 cant read and not showing in disk management.

    Why my external hard drive seagate 3.0 cant read and not showing in disk management, while 2.0 can read. please help me to solve it. BIG THANK YOU.. 

    Hi,
    Yes, like Vegan said, you should check if your Seagate hard drive if it could available in USB 3.0 port. This is hardware related.
    Karen Hu
    TechNet Community Support

  • Hello, I have an iPad Mini WiFi Cellular white 16Gb and I puted my sim inside it but, I cant read the text message that I recieve in the Sim. What can i do? And I can't put the sim in a cellphone coz it doesn't recognize it. Please help me! Thank you.

    Hello, I have an iPad Mini WiFi Cellular white 16Gb and I puted my sim inside it but, I cant read the text message that I recieve in the Sim. What can i do? And I can't put the sim in a cellphone coz it doesn't recognize it. Please help me! Thank you.

    iPads do not do SMS.

  • I am running windows 8 and have lightroom 5.5 and i have a error that says cant read from previous cache?  help

    I am running windows 8 and have lightroom 5.5 and i have a error that says cant read from previous cache?  help

    Using Windows Explorer, navigate to the folder that contains your catalog it's probably located in Pictures\Lightroom. In that folder you will find another folder with the extension .lrdata. You need to delete that folder and its contents, then start Lightroom again. And new previews folder will be created automatically, and you should be able to start using Lightroom normally.

  • I cant read PDF files on my blackberry curve 8520.

    I cant read PDF files on my blackberry curve 8520. Its not working, please help.

    You will need PDF file reader application in you smartphone to read PDF files. But if you receive PDF files as email attachments then they'll open in your phone.
    tanzim                                                                                  
    If your query is resolved then please click on “Accept as Solution”
    Click on the LIKE on the bottom right if the post deserves credit

  • I cant read Gmail after upgrading IOS 7

    Good afthernoon, I cant read my gmail mailbox after upgrading to ios 7 on my iphone 5. I remove it, restarted the phone and reconfigure my gmail account, update to IOS 7.0.2 but the problem persist.
    Almost of time, the mailbox of Gmail is grey and the access is no allowed. The problem is only with gmail, there are some similar threads in these forums, but I dont find any resolution.
    Much appreciated.

    The problem was solved editing/removing labels from gmail account. IMAP and POP3 was enabled, I disabled the last one (POP3) to.
    From any browser go to your Gmail Inbox/configuration/label, try editing o removing unnecesary labels and check if you are using POP3/IMAP.
    Greetings

  • I started using Firefox4Betas cant read the tect when i print it out

    I have started using Firefox 4 Betas and i cant read the on the web sites when i print it out.

    1. There's a print-related Bug in 4.0b12 that was fixed on Monday in the Nightly's. The fix will be in the 4.0RC version in about a week and a half.
    2. Using the same Profile for both 3.6.14 and 4.0beta can cause problems. Create a new profile exclusively for the 4.0 beta version and create a desktop shortcut with -P "profile" appended to the target to launch that profile.
    * http://kb.mozillazine.org/Testing_pre-release_versions
    * http://kb.mozillazine.org/Creating_a_new_Firefox_profile_on_Windows
    * http://kb.mozillazine.org/Shortcut_to_a_specific_profile
    * http://kb.mozillazine.org/Using_multiple_profiles_-_Firefox

  • Cant read and import CDs :(

    Hello,
    I just installed this computer for my girl friend, here are the specs :
    Asus A8V-E SE Motherboard
    1 Gig Kingston memory
    Sony DW-Q120A CD/DVD-RW
    Maxtor 80GB SATAII hard drive.
    Now, I downloaded iTunes, and she can't import songs from CDs, nor she can read them. When you try to listen to a CD, it does like every song lasted 0.1 seconds and skip to the next one, without doing any sound. When I try to import them, it takes like 5 secs for the whole CD, then I cant read the songs that are imported, and iTunes says they're all 789:57:13 long. Also, I can read CD just fine with (huh :() Windows Media Player!
    Heres my CD diagnostic
    Microsoft Windows XP Professional Service Pack 2 (Build 2600)
    System manufacturer System Product Name
    iTunes 7.0.1.8
    CD Driver 2.0.6.0
    CD Driver DLL 2.0.6.0
    UpperFilters: GEARAspiWDM (2.0.6.0),
    Video Driver: RADEON 7000 / RADEON VE Family (Microsoft Corporation)\RADEON 7000 / RADEON VE Family (Microsoft Cor
    SCSI\DiskMaxtor6V080E0_________VA11, Bus Type SCSI, Bus Address [0,0]
    SCSI\CdRomSONY___DVD_RW_DW-Q120APYS3, Bus Type SCSI, Bus Address [0,0]
    Current user is an administrator.
    D: SONY DVD RW DW-Q120A, Rev PYS3
    Audio CD in drive.
    Found 11 songs on CD, playing time 33:53 on Audio CD.
    Track 1, start time 00:02:00
    Track 2, start time 03:15:73
    Track 3, start time 05:05:37
    Track 4, start time 08:35:04
    Track 5, start time 11:32:69
    Track 6, start time 15:10:41
    Track 7, start time 18:05:29
    Track 8, start time 19:49:12
    Track 9, start time 23:07:39
    Track 10, start time 26:54:08
    Track 11, start time 30:23:12
    Audio CD reading failed. Error Code: 1450 1450 1450 1450 1450 1450 1450 1450 1450 1450 1450 1450 1450 1450 1450 1450 1450 1450 1450 1450.
    To play or import music from a CD in this drive, you must be logged in as an administrator.
    Get drive speed succeeded.
    The drive CDR speeds are: 4 8 10 12 16 24 32 40 48.
    The drive CDRW speeds are: 4.
    The drive DVDR speeds are: 4.
    The drive DVDRW speeds are: 4.
    Thanks for the help!

    HAve you ever had one of those moments that you get so frustrated that you just start pushing buttons and messing with crap---that eventually crap just starts to work? I finally got my audio CD's to read on iTunes, but mystery b: I have no floggin clue as to how the heck i did it. More investigating to be done, and a hopefully helpful report for people having issues with same ordeal. I took every advice that I found on here, erased things, messed with volumes, turned crap on and off, messed with the error correction box, hardware acceleration, erased and readded things on registry... serious I messed with it all. And now I'm afraid to turn off my computer and have it revert back. But now my internet card on my laptop wont connect. something wrong with the socket...hehe, go figure. If it's not one thing its another. Im working off my home desktop for this one. But I'll get back to you all with details and hopefully answers for this freakin and most frustrating issue. But in the mean time, just mess, and see what comes with experimentation. BUT WARNING!!! MAKE SURE YOU MAKE A BACKUP OF EVERYTHING IN CASE IT CRASHES. Theres an article on here that tells you how to mess with the registry, its under the "audio CDs wont read" article. Around there, it gives you full step by step instructions on how to back up, either part or your whole system. I emailed the instructions to myself incase my laptop crashed and I needed instructions off another computer. It may seem like an elementary piece of advice, but you'd b surprised how many dont know of that little safety hitch people get into. But after everythings good to go--hack away and it'll work...eventually. I'll do my share and get back to you. I'm not too heartless.

  • Java script on hotmail keeps reloading page and cant read my email

    Firefox 4 B 10 my Hotmail just keeps reloading the page and when I try to scroll down it just jumps to the top cant read my email without going to tools and turning off Java script then have to turn back on to see next email!!!

    That problem with Hotmail started around Jan19 - in that Bug report is a comment from a Microsoft rep that they will have it fixed before the Firefox 4.0 Release Candidate is ready.

  • I cant read my number on my i tunes card i purchased

    i cant read my i tunes card some of the numbers are missing

    See:
    iTunes Store: Invalid, inactive, or illegible codes

  • Cant read my encrypted sent mail

    I'm able to send encrypted mail and have the recipients read it without any problems, however I'm unable to read those mails in my send folder.  All I see is the smime.p7m attachment. I can also read encrypted mail sent to me by others without any problems. 
    Any ideas why I cant read my own encrypted mail?  Started happening after upgrading to Mavericks and adding a new mail certificate for myself didn't resolve the problem.

    First, the address associated with the S/MIME public key must exactly match the address to which you're trying to send the encrypted message. The matching is case-sensitive. "[email protected]" does not match "[email protected]".
    The recipient's certificate must be valid: not self-signed, expired, or revoked. You can check the status of the certificate in Keychain Access (see below.)
    If you can't encrypt messages to a valid address with a valid certificate, continue.
    Back up all data.
    Launch the Keychain Access application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Keychain Access in the icon grid.
    Select the login keychain from the list on the left side of the Keychain Access window. If your default keychain has a different name, select that.
    If the lock icon in the top left corner of the window shows that the keychain is locked, click to unlock it. You'll be prompted for the keychain password, which is the same as your login password, unless you've changed it.
    Right-click or control-click the login entry in the list. From the menu that pops up, select
              Change Settings for Keychain "login"
    In the sheet that opens, uncheck both boxes, if not already unchecked.
    From the menu bar, select
              Keychain Access ▹ Preferences... ▹ First Aid
    If the box labeled Keep login keychain unlocked is not checked, check it.
    Select Keychain from the menu bar and repair the keychain.
    Quit and relaunch Mail. Test. If the problem isn't resolved, continue.
    Export all S/MIME certificates, delete them from the keychain, and reimport. For instructions, select
              Help ▹ Keychain Access Help
    from the menu bar and search for the term "export" in the help window. Export each certificate as an individual file; don't combine them into one big file.
    Test again. If the test fails, delete all the certificates again, then reinstall them from fresh copies.

  • Cant read my english books

    my old email dosent work anymore. I got a ny one but naw i cant read my english books, and I cant find a phonenumber
    so someone can help my

    You can join old and new account with below url:
    Adobe eBook Platform - Account Synchronization
    Once done, you will be able to read all your books.

  • Cant read the contents

    when i plug my ipod into the computer it says in itunes that it cant read the contents of my ipodtouch and i would have 2 restore it. i dont really get what this means? and i dont want 2 restore it because i dont want 2 lose everything in my ipod. i dont know if it has anything 2 do with the fact that my ipod is running out of space? also my computer hard drive broke so we had 2 get a new one, therefore everything was deleted ,yet when i downloaded itunes again for the first time and pluged my ipod in it didnt give me that message that it couldnt read the contents. so i dont know whats going on? if u could help that would be great !

    you can transfer iTunes purchases to the computer by:
    iTunes Store: Transferring purchases from your iPhone, iPad, or iPod to a computer
    One of the third-party programs dicussed here will transfer other stuff:
    new PC: Apple Support Communities
    If you are in the USA and using the latest iTunes you can redownload music via the iCloud beta.  See:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

Maybe you are looking for

  • NB520 - Multiple monitor support

    Do NB520 have multiple monitor support built in, if not, how can I have multiple monitor support for my NB520? I need for using a Pewerpoint 2007 (to display presenter view differs from audience view). Many thanks for an answer in advance.

  • STO from one plant to another plant of same company code

    Hi Friends, I have one specific scenario to map in SAP. I am transfering gaseous material from PLANT 1 to PLANT 2 thru' STO delivery. PGI has done for Qty 18 MT from PLANT 1. GR against STO at PLANT 2, here GR qty 17.5 (actual) remaining 0.50 MT is n

  • Not charged yet for update and monkey game

    I bought the 2.0 update and the Monkey game. Everything works great but I am not charged for it yet, how long does this usually take?

  • Basic jsp design question

    I did this with a servlet and now I'm trying to figure out how to do this with a jsp. I have a screen that displays data If there is no data you get a message saying no data So I think that would be 2 jsps. If you hit the edit or save button you get

  • Deleting MIC or Characteristics in QE01 or Result Recording(QA32)

    Hi friends Any t.code for deleting MIC or Characteristics or Parameter in QE01 or Result Recording(QA32) Thanks & Regards Gajendranath