阅读游戏控制器输入并发送一个后。 [英] Reading game-controller inputs and sending also one after.

查看:76
本文介绍了阅读游戏控制器输入并发送一个后。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好!



只是一个例子,我想做什么。我想从我的Gamecontroller(PS4或XBOX360控制器 - 无关紧要)读取/获取输入,然后在那之后直接发送另一个Button-Press。



示例场景:



我按下控制器上的Cicle / B - >等待~100ms然后按Cross / A



我的谷歌搜索非常令人失望。



Do你知道类似我的问题吗?



亲切的问候



我尝试过:



我对Gamecontrollers完全不熟悉。我的代码与键盘输入完美配合,并且在我读完所需输入后肯定会发送另一个。

Hello!

Just an example what I want to do. I want to read/get the input from my Gamecontroller (PS4 or XBOX360 Controller - Does not matter) and then send another Button-Press directly after that one.

Example Scenario:

I press Cicle/B on my Controller -> wait ~100ms then Press Cross/A

My Google-Searches was extremely disappointing sadly.

Do you know anything similar to my problem?

Kind Regards

What I have tried:

I am completely new to Gamecontrollers. My Code is working perfectly with Keyboard Inputs and surely sending another after I've read the desired input.

推荐答案

看看这篇文章:一个OpenGL Win32项目 [ ^ ]



It有代码可以读取操纵杆的输入,它可能会给你一些想法。
Have a look at this article : 50 OpenGL Win32 Projects in One[^]

It has code that reads a joystick's inputs and it might give you some ideas.


这篇关于阅读游戏控制器输入并发送一个后。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆