Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
17 views

A android shell script for converting Bluetooth gamepad input to mouse click

Is there any gamepad mapping app which converts gamepad input to mouse click events, not touch events! If not, can someone help me writing a script in shell which I can execute through adb, so that I ...
Ryan Tariq's user avatar
0 votes
0 answers
19 views

Laptop built in Mousepad and Steam Input Virtual Gamepad don't work with raw input?

I'm trying to make a program in C# that reads button inputs from all your connected mice, keyboards and hid devices. So far it's working without issues on my wired usb mouse, wired and wireless ...
The Great ReLLeRtR's user avatar
0 votes
0 answers
23 views

How to detect only gamepads using hdiapi in Rust

The title sums it up... When using hidapi in Rust, it seems to detect many devices that aren't gamepads (Logitech mouse remote USB connectors for instance). How can one filter those out and only list ...
Ken's user avatar
  • 94
1 vote
1 answer
82 views

Can I use pygame without 'video system', just for gamepad input?

I'm trying to build a raspberry pi controlled robot. In particular, I want to use a gamepad to navigate the robot. I wrote the following code on my desktop computer to capture the gamepad input: ...
user23628710's user avatar
0 votes
1 answer
74 views

Hololens 2 Unity Bluetooth Gamepad Support

So I can't seem to find much information over traditional gamepad support for the Hololens 2 and Unity projects. I've heard that xbox controllers do work but I currently only have a Gamesir T4 Pro and ...
CocoaMilka's user avatar
0 votes
0 answers
123 views

vgamepad PS4 controller emulation issue

Using vgamepad for PS4 controller emulation, the virtual gamepad isn't responding to button presses. Initialization, button constants, and regular updates are in place. No errors reported. Any common ...
user avatar
1 vote
1 answer
140 views

Getting duplicated input events from two separate gamepads on Linux using evdev

I'm writing an input system for my engine and I'm currently trying to get controller input up and running. I have a third party X-Box controller and PS4 controller for testing. I was successful in ...
magikz's user avatar
  • 11
0 votes
0 answers
115 views

Add gamepad/game controller support to flutter app tried many libraries but none working

i tried many libraries none of those working i tried native code in flutter but method cannont be continuosly invoked any suggestions Adding support of gamepads to Flutter app Also are there any ways ...
KRUSHNA PATIL's user avatar
0 votes
1 answer
57 views

Footpedal with pi pico and circut python

Im building my own footpedal for my pc and got it working more or less. I can send the he code so it acts as a keyboard but I want it to display as a FOOTPEDAL1 .. 2 .. 3 .. 4. I downloaded this code ...
MigiHunzi's user avatar
0 votes
1 answer
146 views

Construct a Gamepad in js

So I was trying to simulate a controller in JavaScript but couldn't find a way to construct a new Gamepad() and could not figure out how to work this out from the docs could anybody help. This is what ...
Muhammad Anas Sajjad's user avatar
0 votes
0 answers
54 views

How to disable other joystick buttons while one of them is being clicked Angular ngx Gamepad

Basically what I need is to block other joystick buttons while one is clicked. Currently, by clicking two buttons, both perform the action at the same time or one by one. I want to avoid the situation ...
W12's user avatar
  • 53
0 votes
0 answers
253 views

Unity, How to get specific controller input with multiple controller(joysticks)

enter image description here I found to get how many controllers connected. But how do we know each different controller's input? Example: Assumption: 1st Player - Keybord and Mouse, 2nd Player - ...
PpuRal's user avatar
  • 1
2 votes
1 answer
73 views

How to tap existing flutter widget onTap / onPressed with code?

I want to make an app with a gamepad, I succeeded in making a tap function but there is no tap effect like pressing a manual widget, How do I make the widget button have an effect like a manual tap? ...
Jasa service Indonesia's user avatar
1 vote
1 answer
466 views

Set steering wheel angle using Gamepad API

Is it possible to set a specific angle for a Logitech G29 steering wheel using the HTML5 Gamepad API? I assumed the GamepadHapticActuator could be used, but the only GamepadHapticActuatorType is ...
XCS's user avatar
  • 28k
0 votes
1 answer
100 views

Gamepad controller output into Android application

I am interested in using a gamepad controller, (X-Box, etc) to provide input to an Android application that I have written. Data is passed over Bluetooth. This is what I have so far... public class ...
portsample's user avatar
  • 2,032
2 votes
1 answer
380 views

How do I emulate Xbox 360 joysticks using Vgamepad with joycons?

I've managed to map all buttons and triggers from joycons using joycon-python to an emulated Xbox 360 controller using vgamepad. However, I cannot figure out how to map the joysticks. I've tried tons ...
Standie's user avatar
  • 23
-2 votes
1 answer
124 views

How to know which button is which on most USB Gamepads? [closed]

I am making a game in HTML5+JS and I want it to have USB gamepad support using the Gamepad API, but I want the controls to usually match up with the game. So, if there is a gamepad with the up arrow ...
idk's user avatar
  • 47
2 votes
1 answer
149 views

Register custom Gamepad class with GamepadEvent results in Failed to convert value to 'Gamepad'

I'm trying trying build a little virtual controller as Gamepad class and register it. For now it is a copy of the Gamepad class: class MyJoystick { readonly axes: ReadonlyArray<number>; ...
bemeyer's user avatar
  • 6,223
0 votes
1 answer
139 views

Problem while writing code for diy HID Arduino Gamepad

Hello there I'm trying to create a diy HID Gamepad that I will later integrate into something bigger, using the Arduino Pro Micro but I'm new to Arduino/MCUs development/programming, I trying to ...
BONIIXSAbonion 1500's user avatar
0 votes
0 answers
35 views

Is There Anyway to Get Cross-Platform Gamepad Input in C Without Something Like Allegro?

Is it possible to get cross-platform gamepad input in C. All I was able to find was Allegro but I want something that just gets gamepad input. Is there anything like this? Thanks!
User121212's user avatar
0 votes
0 answers
151 views

Joystick/Gamepad events not emitted?

Using the NDK, I can't get any motion event source neither from gamepad nor from joystick through usb (didn't test on bluetooth): usb keyboard or usb mouse work well and the xbox controller is ...
Ha421's user avatar
  • 1
0 votes
0 answers
69 views

write driver for simulate arduino uno as gamepad

I connected two joy stick to arduino uno (ch340g) and I wanna use this as gamepad but I don't know what library in c# (visual studio) can handle it I search a long time. and now I don't know what to ...
villager 164's user avatar
0 votes
0 answers
177 views

Getting more than 4 gamepads working in your Unity game?

Unity 2020.1.17f1 Input System 1.0.2 So if I plug in 5 xbox 360 controllers (wired) and 1 modern wireless xbox controller (I think series X or something) I am able to play games such as Regular Human ...
user8810083's user avatar
3 votes
0 answers
334 views

Check Controller Connection with SDL2?

So I want to check if a controller is still connected after properly initialization with this joystick_ = SDL_JoystickOpen(0); if (!joystick_) { std::cerr << "Failed to open ...
Cadybrille's user avatar
1 vote
1 answer
1k views

Game controller button number incompability between SDL2 and other tools (Windows' and online tools)

I'm trying to make a 1 to 1 mapping between physical game controller device and virtual device (vJoy). What I want to achieve is when button no X is pressed on physical device, make button no X ...
Yunus Yurtturk's user avatar
2 votes
1 answer
669 views

How can I request input data from a game controller via USB HID API?

I've been using the below API to get data from my game controllers and it's worked fine up until my new controller arrived, which has more than the 32 buttons the API supports (The Windows Game ...
NeoTechni's user avatar
  • 171
-1 votes
1 answer
211 views

press buttons on gamepad

i am trying to press buttons on the gamepad i am using a gamepad descriptor for the gamepad but i cant find out how to press the buttons on the gamepad is there any way to press the buttons? i am ...
Tijn Coenen's user avatar
0 votes
1 answer
501 views

how to capture HID hex button codes for usb gamepad

Hi I have some firmware I want to modify that reads from USB gamepads, I want to edit the firmware for my own gamepad I assume these hex codes refer to up down left right and buttons on the gamepad, ...
Retro Tec's user avatar
0 votes
1 answer
99 views

Fast data transfer between a python program (server) and a Java program (client) on the same singleboard Linux computer (Raspberry Pi 3)

I know relativ good java and created a videogame using it for raspberry pi. The game must be controlled via an USB joystick. I searched and found many variant to read joystick data, but it seems that ...
Alexander Gorodilov's user avatar
0 votes
1 answer
303 views

Any way to use more than 4 XBox controllers in Unity?

Currently I am using InputSystem and am running into XInput’s hardcoded limit of 4 controllers. I’m looking for any ways to bypass that, e.g. by making my XBox controllers use DirectInput API. Is ...
SurDno's user avatar
  • 31
0 votes
2 answers
122 views

Is there another step I am missing with HID gamepads?

I am running a ItsyBitsy M0 board with a custom firmware using the ATMEL start (HID GENERIC). When I run the firmware as default the device shows up in the device manager with no errors. Since its ...
grandpa_sam's user avatar
1 vote
1 answer
101 views

Breakout game, paddle moves all the way to the left when not pressing the controller gampad button

I can't figure out why the paddle moves on its own all they way to the left when I run the game. The gamepad controller does work and it moves the paddle but when your not pushing down on the gamepad ...
TMC FAMILY's user avatar
0 votes
0 answers
568 views

Handle inputs from a gamepad with Processing for Android

I’m trying to use Processing for Android to get inputs from a physical game controller (with buttons and joysticks). I am using the Android documentation on controller actions as a guide. Tl;dr: I'm ...
Sableraph's user avatar
  • 1,014
2 votes
1 answer
2k views

How can I add controller/gamepad support into a java program?

Im currently making a small game and I would like to include Ps4/xbox/gamepad controller support in it. I cannot seem to find many resources on how to actually implement this so I was wondering what ...
Avi yi's user avatar
  • 21
0 votes
0 answers
358 views

Firefox / GeckoView Gamepad API not functional?

The Gamepad API isn't working in the official firefox app and in a GeckoView (v 107.0.xxx) on Android. To Reproduce: Open the test gamepad API site: https://luser.github.io/gamepadtest/ On chrome, it ...
alexward1230's user avatar
0 votes
1 answer
752 views

Why can't I have an HID descriptor for a gamepad with 17 buttons?

I currently have this HID report descriptor: static unsigned char hid_report_descriptor[] __attribute__ ((aligned(64))) = { 0x05, 0x01, // Usage Page (Generic Desktop Ctrls) 0x09, 0x05,...
Carlos Santos's user avatar
0 votes
0 answers
71 views

GLFW crashes when pressing down all 4 DPAD buttons

I am trying to add game controller support into my application and it works for every button so far. However, my controller allows me to press down the whole DPAD button (all 4 directions) and it ...
tomatto's user avatar
  • 149
0 votes
1 answer
1k views

Detect/override controller "Home" button press android

I have an android application that is meant to be used with a game controller connected to the android device. Most game controllers have a center 'home' button that I would like to use to pause the ...
alexward1230's user avatar
3 votes
2 answers
1k views

SwiftUI - How to perform action only while the button is tapped, and end it when the tap is released?

I'm trying to recreate a Game Boy like game pad in SwiftUI. Graphically it looks good, but I can't make the actions work. I would like it to perform the action (move in the selected direction) while ...
Pandruz's user avatar
  • 427
0 votes
1 answer
226 views

Pyglet controller object with event lister problem (setting up event-object at __init__ giving runtime error)

I am trying to get a controller object working using Pyget. I have been following this documentation, but am not sure how to set up button listeners. This is a pared down version of my code: #test_2....
Pogmog's user avatar
  • 23
1 vote
2 answers
526 views

Trouble detecting joysticks in Python Arcade (and Pyglet)

I can't seem to get my controllers to detect correctly in using Python Arcade. I've created a controller object that tests the basic functionality like this: # tq_menu class CursorControl(): ...
Pogmog's user avatar
  • 23
1 vote
0 answers
220 views

How to get a list of available joystick ids in Go

I'm trying to find joystick state in a cross platform way - developing on windows - using Golang. I'm currently looking to use the joystick API at https://github.com/0xcafed00d/joystick However, for ...
AndyS's user avatar
  • 787
0 votes
1 answer
262 views

Using gamepad-api via events, rather than polling

I am building a chrome extension that would enable the use of my 3d-mouse (made by 3d connexion) to scroll web pages. The built-in 3d connexion drivers are worthless, and the 3d mouse presents itself ...
Oren Pinsky's user avatar
0 votes
1 answer
1k views

Android app - Send gamepad key through keyboard input

I am developing a keyboard app for Android in Java and I want to be able to send inputs as if my application was a virtual game controller. Example: The inputs I want to send are among the following ...
Felipe's user avatar
  • 51
2 votes
1 answer
549 views

Android gamepad app to dispatchKeyEvent to another app (game)

I am developing a game controller app for a school project that displays a virtual gamepad and is aimed at controlling any game app on Android. Of course, the game app should support listening to ...
Felipe's user avatar
  • 51
0 votes
1 answer
721 views

How to read gamepad values in the playstation browser using usb, bluetooth or gamepad api?

I tried connecting the gamepad with the ps browser, but the browser gives me an error, that navigator.bluetooth and navigator.usb are undefined. It's easier to connect the gamepad with the chrome ...
Meliodas's user avatar
0 votes
1 answer
293 views

Convert ABS_X and ABS_Y into meaningful values

I am new to mapping a gaming controller and I am attempting to make sense of the ABX_X and ABS_Y values that return from the joystick. My goal is to take those values and turn them into "move ...
mornindew's user avatar
  • 2,201
0 votes
1 answer
699 views

How to create a generic "joystick/gamepad event" in Javascript?

Issue: In the current implementation of modern browsers, (like Firefox or Chrome), there are only two joystick/gamepad events: gameadConnected gamepadDisconnected Since it appears that the original ...
Jim JR Harris's user avatar
1 vote
0 answers
353 views

Focus stuck in textarea and inputs

I'm creating a form and am noticing that focus gets stuck in these inputs. I'm using a spatial navigation library (spatial-navigation-js by luke-chang) which enables spatial navigation by arrow keys (...
briankwlin's user avatar
0 votes
1 answer
569 views

Handling gamepad button clicks in tty, in Linux

I have a Linux device with an EmulationStation on board (keyboard is connected to it via USB). I want to process gamepad keystrokes in the terminal so that I don't have to plug in a keyboard for that. ...
alex2020's user avatar
  • 159

1
2 3 4 5
7