RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    [Experiment] Touchscreen calibration settings that work in Pixel Desktop (Raspbian) doesn't work in Retropie..

    Scheduled Pinned Locked Moved Help and Support
    touchscreenretropie 4.4xpt2046pixel desktop
    7 Posts 2 Posters 1.4k Views
    Loading More Posts
    • 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.
    • felixlee0530F
      felixlee0530
      last edited by felixlee0530

      Hi all,

      I recently bought a Raspberry Pi 3 and a 5-inch LCD display with resistive touch.

      The touch display uses XPT2046 touch controller, so I installed some set of touch drivers and calibration application in the Pixel Desktop (Raspbian) which I installed separately, and checked that the touch function works fine for all of the surface of the display in the Pixel Desktop.

      Here is the link that I looked at to install touch drivers: https://www.raspberrypi.org/forums/viewtopic.php?t=143581

      However, when I tried to do some touch operation in Drastic in Emulationstation, I found that touch with a stylus actually works in the game display, but the calibration is somewhat messed up.

      Is there any methods to apply the SAME calibration settings with the Pixel Desktop, so that touch in a certain position of the display may work in the exact same way as in Pixel Desktop?

      Sample touchscreen calibration settings using xinput_calibrator:

      Section "InputClass"
      Identifier "calibration"
      MatchProduct "ADS7846 Touchscreen"
      Option "Calibration" "3853 170 288 3796"
      Option "SwapAxes" "1"
      EndSection

      mediamogulM 1 Reply Last reply Reply Quote 0
      • mediamogulM
        mediamogul Global Moderator @felixlee0530
        last edited by

        @felixlee0530 said in [Experiment] Touchscreen calibration settings that work in Pixel Desktop (Raspbian) doesn't work in Retropie..:

        However, when I tried to do some touch operation in Drastic in Emulationstation, I found that touch with a stylus actually works in the game display, but the calibration is somewhat messed up.

        DraStic is not written to support absolute pointer coordinates. Unfortunately, it only supports relative mouse coordinates, which will allow the touchscreen to work, but you'll always have to drag the cursor around to get it where you want it.

        RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

        1 Reply Last reply Reply Quote 0
        • felixlee0530F
          felixlee0530
          last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • felixlee0530F
            felixlee0530
            last edited by

            @mediamogul said in [Experiment] Touchscreen calibration settings that work in Pixel Desktop (Raspbian) doesn't work in Retropie..:

            @felixlee0530 said in [Experiment] Touchscreen calibration settings that work in Pixel Desktop (Raspbian) doesn't work in Retropie..:

            However, when I tried to do some touch operation in Drastic in Emulationstation, I found that touch with a stylus actually works in the game display, but the calibration is somewhat messed up.

            DraStic is not written to support absolute pointer coordinates. Unfortunately, it only supports relative mouse coordinates, which will allow the touchscreen to work, but you'll always have to drag the cursor around to get it where you want it.

            Are there other alternatives of Drastic in Emulation Station that support touch calibration?

            mediamogulM 1 Reply Last reply Reply Quote 0
            • mediamogulM
              mediamogul Global Moderator @felixlee0530
              last edited by

              @felixlee0530

              I'm afraid not. There's lr-desmume, but I don't believe it supports pointer input either. Even if it did, it really doesn't run any games past a few frames per second on the Pi.

              RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

              felixlee0530F 1 Reply Last reply Reply Quote 0
              • felixlee0530F
                felixlee0530 @mediamogul
                last edited by

                @mediamogul said in [Experiment] Touchscreen calibration settings that work in Pixel Desktop (Raspbian) doesn't work in Retropie..:

                @felixlee0530

                I'm afraid not. There's lr-desmume, but I don't believe it supports pointer input either. Even if it did, it really doesn't run any games past a few frames per second on the Pi.

                Yeah.. I guess.. but Desmume actually runs Pokemon Platinum quite well, maintaining 100% speed.

                mediamogulM 1 Reply Last reply Reply Quote 0
                • mediamogulM
                  mediamogul Global Moderator @felixlee0530
                  last edited by

                  @felixlee0530

                  Good to know. I tried a handful of games a while back and didn't have any luck myself, but it makes sense that some of the less demanding games would be playable. What kind of frame rates were you getting?

                  RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post

                  Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                  Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.