Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Creating four dimensional control

Creating four dimensional control

Scheduled Pinned Locked Moved C#
designtutorial
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gwithey
    wrote on last edited by
    #1

    I am trying to represent a virtual joystick on a User Interface although im having trouble trying to represent the 4 different axis of the joystick and the click on the top. The best i have come up with is a custom control to represent: x and y axis (using drag a cross in a circle technique) up and down (using a trackbar) button click (using a button) In real life all of these can be used at the same time however cannot with my combination of controls. Does anyone have any ideas how to represent the 4 axis and click functionality Thanx George

    OriginalGriffO 1 Reply Last reply
    0
    • G gwithey

      I am trying to represent a virtual joystick on a User Interface although im having trouble trying to represent the 4 different axis of the joystick and the click on the top. The best i have come up with is a custom control to represent: x and y axis (using drag a cross in a circle technique) up and down (using a trackbar) button click (using a button) In real life all of these can be used at the same time however cannot with my combination of controls. Does anyone have any ideas how to represent the 4 axis and click functionality Thanx George

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #2

      The best I can suggest is to capture the mouse so you don't need to drag, replace the trackbar with the mousewheel, and use the keyboard for the button. Going to be a bit of a bitch for the user what ever you do - I would prefer using a real joystick?

      No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      G M 2 Replies Last reply
      0
      • OriginalGriffO OriginalGriff

        The best I can suggest is to capture the mouse so you don't need to drag, replace the trackbar with the mousewheel, and use the keyboard for the button. Going to be a bit of a bitch for the user what ever you do - I would prefer using a real joystick?

        No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones

        G Offline
        G Offline
        gwithey
        wrote on last edited by
        #3

        That sounds like the best solution. Thanx for the help. It would be annoying for the user but i am an apprentice and this is a training project to try and create a virtual MCU so need to give it a go. The project will eventually use a real one but for now it needs to be a virtual representation.

        1 Reply Last reply
        0
        • OriginalGriffO OriginalGriff

          The best I can suggest is to capture the mouse so you don't need to drag, replace the trackbar with the mousewheel, and use the keyboard for the button. Going to be a bit of a bitch for the user what ever you do - I would prefer using a real joystick?

          No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones

          M Offline
          M Offline
          molesworth
          wrote on last edited by
          #4

          OriginalGriff wrote:

          and use the keyboard for the button

          Or use the mouse button?

          There are three kinds of people in the world - those who can count and those who can't...

          OriginalGriffO 1 Reply Last reply
          0
          • M molesworth

            OriginalGriff wrote:

            and use the keyboard for the button

            Or use the mouse button?

            There are three kinds of people in the world - those who can count and those who can't...

            OriginalGriffO Offline
            OriginalGriffO Offline
            OriginalGriff
            wrote on last edited by
            #5

            Try it on yours - move it, twiddle with the scroll wheel, and press the button - it's like pat your head / rub your stomach! Keyboard means you can divide the work between two hands, and makes it simpler...

            No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones

            "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
            "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

            M 1 Reply Last reply
            0
            • OriginalGriffO OriginalGriff

              Try it on yours - move it, twiddle with the scroll wheel, and press the button - it's like pat your head / rub your stomach! Keyboard means you can divide the work between two hands, and makes it simpler...

              No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones

              M Offline
              M Offline
              molesworth
              wrote on last edited by
              #6

              OriginalGriff wrote:

              Keyboard means you can divide the work between two hands, and makes it simpler...

              Spoken like a true PC gamer... ;P Of course the easy answer is to just plug in an XBox joypad - that's what I do :-D

              There are three kinds of people in the world - those who can count and those who can't...

              OriginalGriffO 1 Reply Last reply
              0
              • M molesworth

                OriginalGriff wrote:

                Keyboard means you can divide the work between two hands, and makes it simpler...

                Spoken like a true PC gamer... ;P Of course the easy answer is to just plug in an XBox joypad - that's what I do :-D

                There are three kinds of people in the world - those who can count and those who can't...

                OriginalGriffO Offline
                OriginalGriffO Offline
                OriginalGriff
                wrote on last edited by
                #7

                molesworth wrote:

                Spoken like a true PC gamer

                I did indeed spend a considerable amount of time with a subtle little game back in the nineties. "Doom" I think it was called... Ate most of my life for about three years. Or was it four? Lost track of time a bit back then due to lack of sleep.

                molesworth wrote:

                the easy answer is to just plug in an XBox joypad

                My 360 is wireless, so that wouldn't help if I was doing the project. But Saitek joysticks aren't too expensive anyway and they can take some abuse. :-D [edit]changed: "Saitek joysticks are too expensive..." oops![/edit]

                No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones

                "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups