• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Staff applications for our PokéCommunity Daily and Social Media team are now open! Interested in joining staff? Then click here for more info!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

WASD and Keyboard Text Entry

  • 4
    Posts
    15
    Years
    • Seen Feb 13, 2021
    Hello, I'm a novice at scripting, but I was able to do some interesting stuff, including changing the directions input to WASD keys. However I also use the Keyboard Text Entry option, and when I try to write A or D, the cursor moves to left or right, without writing anything.
    I would like to keep both WASD and Keyboard Text Entry, so could anyone please give me some lights on how to solve this?
    Thanks
     
    Hello, I'm a novice at scripting, but I was able to do some interesting stuff, including changing the directions input to WASD keys. However I also use the Keyboard Text Entry option, and when I try to write A or D, the cursor moves to left or right, without writing anything.
    I would like to keep both WASD and Keyboard Text Entry, so could anyone please give me some lights on how to solve this?
    Thanks

    press F1 during game
    [PokeCommunity.com] WASD and Keyboard Text Entry
     
    press F1 during game
    [PokeCommunity.com] WASD and Keyboard Text Entry
    But that only allows me to change controls while playing, right? So every time I wanted to name a Pokémon or a Player, or input some other kind of text, I would have to manually change my controls, and afterwards back to normal... I'm looking for something more automatic...
     
    But that only allows me to change controls while playing, right? So every time I wanted to name a Pokémon or a Player, or input some other kind of text, I would have to manually change my controls, and afterwards back to normal... I'm looking for something more automatic...
    No... just change the setting script to "Keyboard Text Entry " and you should be fine
     
    But F1 doesn't allow me to change the direction keys...
    But that's ok, I was able to create a bypass by adding changing the controls of A and D to
    when Input::LEFT
    return [0x25, !$usekeyboard ? 0x41 : 0x25 ] # Left
    when Input::RIGHT
    return [0x27, !$usekeyboard ? 0x44 : 0x27 ] # Right

    where $usekeyboard is a variable initated at false. Then, at the textentry script, I added after Graphics.update in pbEntry1
    $usekeyboard=true
    Input.update

    and before return ret:
    $usekeyboard=false
    Input.update

    Nevertheless thank you for your help
     
    Back
    Top