xbox

How to record state of xbox/gamepad controller in Python?

别等时光非礼了梦想. 提交于 2019-12-11 07:05:49
问题 I need to know at a specific time the value of all buttons of an xbox controller. The reason being that I'm building a training set for a neural network, and I'm trying to simultaneously take a snapshot of the screen and take a "snapshot" of the controller state. Note that I was able to successfully do this for a keyboard version of this project, but the xbox controller is giving me difficulty. What I've tried is creating a dictionary of buttons and values, and updating the dictionary every

C# XNA Xbox, in this case optional parameters are not optional

雨燕双飞 提交于 2019-12-08 10:06:26
问题 Apparently optional parameters won't work in C# Xna when used on the Xbox, there non suportedness is stated during compilation. I have a situation like this: func(float? a = null, int? b = null) With large numbers of thease optional parameters that default to the "undefined" value, null. This situation is required. In the simplified example above this can be unwrapped, although this isn't as optional parameters allow: func() func(float? a) func(int? b) func(float? a, int? b) However with

C# XNA Xbox HashSet and Tuple

你说的曾经没有我的故事 提交于 2019-12-08 03:13:32
问题 C# XNA Xbox, in this case optional parameters are not optional Thanks to help from the above question optional parameters are now working, or at least appear as if they should work. However I'm now stuck on HashSets and Tuples, that don't appear to be available either. I could write my own version of both classes. Tuple from scratch and HashSet using a Dictonary (possibly). However I'd rather keep to using the standard ones. If these classes exist in the PC verstion of the library, then can I

C# HashSet2 to work exactly like the standard C# HashSet, not compiling

て烟熏妆下的殇ゞ 提交于 2019-12-08 00:37:38
问题 I'm creating my own HashSet that works as the standard HashSet, using a Dictionary. I'm doing this because C# for XNA XBox doesn't support HashSets. This code is based on code from an example I found. I've edited the example to fix some of the problems but it still won't compile. public class HashSet2<T> : ICollection<T> { private Dictionary<T, Int16> dict; // code has been edited out of this example // see further on in the question for the full class public IEnumerator<T> GetEnumerator() {

C# HashSet2 to work exactly like the standard C# HashSet, not compiling

人走茶凉 提交于 2019-12-06 07:27:51
I'm creating my own HashSet that works as the standard HashSet, using a Dictionary. I'm doing this because C# for XNA XBox doesn't support HashSets. This code is based on code from an example I found. I've edited the example to fix some of the problems but it still won't compile. public class HashSet2<T> : ICollection<T> { private Dictionary<T, Int16> dict; // code has been edited out of this example // see further on in the question for the full class public IEnumerator<T> GetEnumerator() { throw new NotImplementedException(); } IEnumerator<T> IEnumerable<T>.GetEnumerator() { return dict

Detect if share UI is supported in current device (UWP)

余生长醉 提交于 2019-12-05 15:17:45
I have created a UWP app for windows 10 devices using c#/xaml. In the app, i have a share functionality that calls DataTransferManager.ShowShareUI() This works as expected on desktop, tablet and mobile devices. But on my xbox, the above method does not launch the share UI. Nor does it throw any exceptions. After searching online a bit, I found this article that says share contract is not supported on xbox. And no share UI is displayed. But this gives a bad user experience. So I have 2 options now Hide the share button, if the device is an xbox Or when user clicks on share, show a popup that

Developing apps for Xbox One?

不羁岁月 提交于 2019-12-04 08:20:42
问题 I've heard that Xbox One application development is quite similar to Windows 8, but I haven't found much to suggest why, or what differences there are. Is there any documentation about creating Xbox One applications (not games, apps.. like Netflix, etc), or even how to apply to obtain such information? 回答1: Important update on this topic: Every Xbox One is now capable of going into developer mode via the Xbox Dev Mode App. Games and more importantly apps can now be developed by anyone. FAQ on

Collection with very fast iterating and good addition and remove speeds

孤街浪徒 提交于 2019-12-03 15:17:48
I'm after a collection that I can iterate through very fast. I'll also be adding items and removing (specific) items fairly regularly and so ideally would like those operations to be fast too. I'm developing on the xbox and so am restricted to the compact framework (more or less). It's very important that I keep garbage and object allocations to a minimum, so anything where i can pre-allocate space for my objects would be great. I'll be storing uint s (but can be int s if needed) in the collection. A generic solution would be good though, as i'm sure i'll have a need in the future. A .net

使用 Xbox Game 录制桌面视频(录制音频)

三世轮回 提交于 2019-12-02 23:51:33
使用 Xbox Game 录制桌面视频(附带音频) 前言:可能自己音频输出的问题,一直无法用工具录制桌面的音频,而最后发现利用 Xbox Game 录制游戏视频的功能很好地解决我们的问题。 1)打开游戏,让启动Xbox可以启动。   注意:如果不启动游戏,则 Xbox 无法启动。启动 Wegame 或者 Steam 这类客户端即可。 2)右击Win图标(桌面右下角)- 设置 - 游戏 - 屏幕截图,将 “仅录制音频” 关掉。    3)按 Win+G 键,启动Xbox,有一个录制按钮,点击录制之后即可保存。 来源: https://www.cnblogs.com/onetrainee/p/11768080.html

Developing apps for Xbox One?

℡╲_俬逩灬. 提交于 2019-12-02 22:30:26
I've heard that Xbox One application development is quite similar to Windows 8, but I haven't found much to suggest why, or what differences there are. Is there any documentation about creating Xbox One applications (not games, apps.. like Netflix, etc), or even how to apply to obtain such information? Important update on this topic: Every Xbox One is now capable of going into developer mode via the Xbox Dev Mode App. Games and more importantly apps can now be developed by anyone. FAQ on this topic: http://support.xbox.com/en-US/xbox-one/apps/developer-mode-activation-app-faq I've been trying