问题标签 [playstation]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
c# - 您如何解析来自人机接口设备/HID 的信息?
我什至可能对与 HID 交互的了解还不够,无法提出一个好问题,但这是我迄今为止最好的镜头。我正在使用 C#,目前在 Windows 上。
我一直在研究如何与 PlayStation 4 或 PlayStation 5 控制器等游戏控制器进行交互。我希望能够确定何时按下按钮、按下触发器的距离以及用户可以执行的任何其他输入。我想知道如何做的另一部分是向控制器提供输入。这可能类似于告诉控制器发出隆隆声,或者它可以告诉 PlayStation 5 控制器调整其触发器的张力,这是该控制器的一个新功能。
我已经走得够远了,我认为我可以找到设备,连接到它,然后开始接收来自控制器的数据报告。我也看到了将数据写入控制器的方法,但我还没有尝试过。
我遇到的主要障碍是我不知道如何解析我返回的数据。我得到了 63 个字节的数据,但不知道它应该是什么意思。同样,我不知道向控制器发送数据时使用什么格式。
我知道我可以监视这 63 个字节,以查看按下控制器上的按钮时发生的变化,但我想知道是否有一种好方法可以让我无需反复试验就可以获取这些信息。我也不知道我可以做些什么来弄清楚如何自己向控制器提供数据。
有没有办法从设备本身获取这些信息,或者这些信息是否需要由控制器制造商提供?
api - GamePass 和 PSNow API
我正在寻找一种方法来获取游戏通行证和 psnow 当前可用的游戏列表。
在谷歌上找不到它,但也许这里有人有东西?最好的方法是使用 API。
太感谢了 !
linux - FreeBSD 动态库可以在 Orbis(ps4 或 ps5 系统)上运行吗?
我想使用 no_std rust 语言的动态库来构建我的应用程序(c/c++)。
当然,我知道 c/c++ 的静态库链接有效。
但我不知道 freeBSD 动态库能否在 Orbis(ps4 或 ps5 系统)上运行,因为 Orbis 是基本的 freeBSD。
javascript - 如何将exe转换为精灵
我使用 JavaScript 制作了一个游戏。我使用 NW.JS将其转换为 exe ,但我想在 Playstation 上运行游戏。我从 Internet 上发现您需要 .ELF 文件才能在控制台上运行它。我想知道如何将.exe 转换为.elf。
rest - Destiny2 用户的 Bungie API:通过平台昵称查找 memberId 或 bungie 显示名称
我正在支持一个获取玩家游戏统计数据的应用程序。例如,我们有 playstation 或 xbox 昵称,需要找到 bungie memberId。
我看代码 - 我们误用了“Destiny2/SearchDestinyPlayer”API,因为它不需要游戏站昵称(或 Xbox 昵称),而是需要完整的 bungie 名称,包括#xxxx(#id) https://bungie-net.github.io/#Destiny2。搜索命运播放器
看起来之前在 Destiny2 中出现了交叉保存功能,它是相同的昵称,#id 不是强制性的。
有人可以建议另一个接受平台(xbox 或 playstation)昵称的 API 吗?也可能建议专门针对 bungie API 的论坛?
PS:我搜索了替代网站,例如在“https://destinytracker.com/”上,我可以选择平台“Playstation”并输入昵称“T-rex_on_point” - 它找到了 bungie 名称 Brontosaurus881#6169 以及 URL 中的 membersId . 它是如何做到的?它使用什么 API?我终于需要“membershipId” id,但如果我能找到完整的 bungie 显示名称 - 那么我可以使用上面提到的 Destiny2/SearchDestinyPlayer API 找到“membershipId”
unity3d - 有没有办法通过代码在统一之外更改双电击控制器灯条的颜色?
我正在开发一个统一游戏,我想让连接的 Dualshock 控制器上的灯条在玩家受到伤害时改变颜色。有人可以告诉我一种方法来做到这一点,因为团结不再支持这一点。
我尝试通过使用以下命名空间来实现这一点,然后使用一种方法更改灯条的颜色,但很快意识到,Unity 早就弃用了这个功能。
提前致谢!
编辑:Unity 实际上支持这一点,只是在他们的新输入系统包上(我的团队没有时间升级到)。所以我想我的新问题是:有没有办法通过编程和代码在统一之外改变双电击控制器灯条的颜色?
谢谢!
python - Jetson Nano stops receiving commands from PS4 controller
I am working on a robotics control program using a Jetson Nano computer, a bluetooth receiver, and a PS4 controller. The program is written in Python and I am using the pyPS4Controller library to read events from the PS4 controller (button presses, joystick maneuvers, etc.) Once connected, it works pretty well for the most part. However, there are a few times where the program does not respond to any events on the controller. It is very hard to diagnose this problem because it happens sporadically and both the computer and controller act as though they're still connected to each other through bluetooth. I'm assuming there is something wrong happening with the controller when this happens. Is it possible to read something from the controller constantly? Should I try a different approach besides using pyPS4Controller?