Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Gamepad is connected but not displaying the name
Forum Updated to NodeBB v4.3 + New Features

Gamepad is connected but not displaying the name

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 209 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.
  • V Offline
    V Offline
    Vijaykarthikeyan
    wrote on last edited by
    #1

    I want to configure my Joystick .For that, initially I tried to check the connection details. The joystick is connected but it is not displaying the name. Also, GamepadManager.connectedgamepads returns empty set .I'm using Logitech Joystick..All its buttons and axis are properly responding

    Gamepad {
        id: gamepad
    
        onConnectedChanged: {
            if (gamepad.connected) {
                console.log("Gamepad connected: " + gamepad.name);
            } else {
                console.log("Gamepad disconnected");
            }
        }
    }
    Pl45m4P 1 Reply Last reply
    0
    • V Vijaykarthikeyan

      I want to configure my Joystick .For that, initially I tried to check the connection details. The joystick is connected but it is not displaying the name. Also, GamepadManager.connectedgamepads returns empty set .I'm using Logitech Joystick..All its buttons and axis are properly responding

      Gamepad {
          id: gamepad
      
          onConnectedChanged: {
              if (gamepad.connected) {
                  console.log("Gamepad connected: " + gamepad.name);
              } else {
                  console.log("Gamepad disconnected");
              }
          }
      }
      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by
      #2

      @Vijaykarthikeyan

      Where do you have gamepad.name?!


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      V 1 Reply Last reply
      0
      • Pl45m4P Pl45m4

        @Vijaykarthikeyan

        Where do you have gamepad.name?!

        V Offline
        V Offline
        Vijaykarthikeyan
        wrote on last edited by
        #3

        @Pl45m4 It's a read-only property

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved