1. DroidForums.net is currently undergoing a major software upgrade. If you are experiencing any problems logging in please: Contact Us

Noob trying to make a simple app

Discussion in 'Android Hacks and Help' started by notamamasboy, May 27, 2010.

  1. notamamasboy
    Offline

    notamamasboy New Member

    Joined:
    Jan 4, 2010
    Messages:
    50
    Likes Received:
    0
    Trophy Points:
    0
    Hi there, I was wondering if someone can help me. I'm trying to write an app that will simply allow edges of the screen as a dpad. For example if I want to emulate the up key I would simply press the top edge. I don't know how simple is but I know that there are KeyEvents for the appropriate keys and all I would like to do is simply call the KeyEvent if a certain part of the screen is touched. I know its possible because virtual keyboards are in almost all emulators. Like I said I am very nooby at all this, but nonetheless I am simply trying to learn.

    If you would like to know, I want to implement this "virtual keyboard" in a premade game; snake to be exact.

    I so far have the game recognizing the the touch to start, part, just controlling the movement is my only problem.
    Last edited: May 27, 2010
  2. stonedoubt
    Offline

    stonedoubt New Member

    Joined:
    May 21, 2010
    Messages:
    101
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Charlotte, NC
    Maybe this will help Android Developers Blog: Making Sense of Multitouch