Questions tagged [gamecontroller]

74 questions
1
vote
2 answers

Game controller layout detection - swift

How do I detect the game controllers layout from apple tv? I want to change the controls if the layout is different for the controller which will make the game easier to play. .For example, the apple recommended Nimbus Controller is shaped like a…
KingCoder11
  • 415
  • 4
  • 19
1
vote
2 answers

In A-frame, how do I make a game-controler.api 'gamepadbuttondown:0' mimic an onClick event in javascript

I'm trying to make a light-switch on the wall in A-Frame control ambient lighting. I placed actual lights in the scene so I could name them, and use javascript to make the changes. Since I could not get the game-controler gamepadbuttondown:0 (or…
Ronk
  • 215
  • 2
  • 11
1
vote
1 answer

Moving skspritenode with Game Controller (ThumbStick) Swift

I try to build 2d - top down game, and I have player(skspritenode) and I want to move him when I use the thumbstick. I use this code: gamepad its GCExtendedGamepad if gamepad.leftThumbstick.xAxis.value > 0.1 || gamepad.leftThumbstick.xAxis.value <…
Sqweelow
  • 187
  • 2
  • 13
1
vote
1 answer

Dual Virtual Joystick for iOS simultaneous use

I'm using a virtual joystick for SpriteKit, and it works great. I have tried either JCInput version, or SpriteKit-Joystick version. Both were used for the movement, and used them on the left. This is the code I used, although the documentation is…
Septronic
  • 1,156
  • 13
  • 32
1
vote
2 answers

tvOS GameController At what point does GCController.controllers become populated after launch?

I'm trying to read the GCController.controllers() array after my app has launched to know which controllers were already connected to the AppleTV at app launch. But GCController.controllers().count is 0 until some point after viewDidAppear gets…
Geoff H
  • 3,107
  • 1
  • 28
  • 53
1
vote
0 answers

Supporting MOGA game controllers on Android TV

I would like to upgrade one of our MOGA-compatible games to support Android TV. Is MOGA game controllers supported by Android TV? Is MOGA still around? Their Facebook page is not updated since last year, and go to their developer site, click on the…
Lim Thye Chean
  • 8,704
  • 9
  • 49
  • 88
1
vote
1 answer

GCController framework (OSX) not generating notifications

I'm trying to integrate the GCController framework into my project. I'm not so familiar with Objective-C, so please excuse my ignorance around how this is supposed to work. I have a class that extends NSOpenGLView, which registers observer methods…
1
vote
2 answers

Close iAd interstitial with a Game Controller

I'm making a Sprite Kit game that fully supports wireless game controllers. Using one means you won't always be able to touch your screen for some little actions. (For example, if you use an iPad as a TV game console with an HDMI cable and a game…
Yaroslav
  • 2,435
  • 1
  • 19
  • 36
1
vote
0 answers

Different bits for the same buttons in two different game controllers (joyGetPosEx)?

I have two different game controllers, and I've been using joyGetPosEx (Windows API) to get information from them. They each have buttons with the same physical labels, but some of those buttons have different bit values (as returned by joyGetPosEx…
Bob Vesterman
  • 1,127
  • 1
  • 11
  • 31
1
vote
1 answer

Visual Basic -- Key List (Gamecontroller?)

How can I find a specific value for Gamecontroller-Key? I want to use them for a script in a game. Example: isKeyPressed(Settings.GetValueKey("Key", Keys.X)) Here are the only key-values I…
John
  • 11
  • 1
0
votes
1 answer

Gamecontroller support on Asus Transformer

I'm trying to connect several gamecontrollers to my Asus Transformer (not prime). I got a Logitech F310, F710 and XBox 360 controller for windows. On Android 3.2.1 the F310 worked, and the XBox controller failed (f710 not tested). Now I have updated…
RvdK
  • 19,580
  • 4
  • 64
  • 107
0
votes
0 answers

Windows.Gaming.Input.RawGameController: uniquely identify device between different applications

I am using Windows.Gaming.Input.RawGameController to receive input from gamepads, joysticks and similar devices. https://learn.microsoft.com/en-us/uwp/api/windows.gaming.input.rawgamecontroller?view=winrt-22621 For my application, the input devices…
Nick Thissen
  • 1,802
  • 4
  • 27
  • 38
0
votes
0 answers

Game controller support in Xamarin.Forms

We have a Xamarin.Forms game. We'd like to support game controller input from Razer Kishi on Android. Is it possible to achieve and if yes, how? Also, as a follow-up question: Is it possible to have a cross-platform solution for game controller…
0
votes
1 answer

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 pressed on virtual device. Since I'm trying to map 1-1…
Yunus Yurtturk
  • 509
  • 1
  • 8
  • 26
0
votes
0 answers

How to detect when a game controller gets connected in Android

I'm trying to make a native module for React Native/Expo using Expo Modules API to support game controllers in my app. On iOS there is a notification/event that is posted immediately after a game controller gets connected to the device called…
Mehrdad Moradi
  • 521
  • 1
  • 6
  • 21