Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support Xbox / Microsoft GDK #2084

Closed
hajimehoshi opened this issue Apr 30, 2022 · 2 comments
Closed

support Xbox / Microsoft GDK #2084

hajimehoshi opened this issue Apr 30, 2022 · 2 comments

Comments

@hajimehoshi
Copy link
Owner

Documentation: https://docs.microsoft.com/en-us/gaming/gdk/ (The API is publicly available)
Examples: https://github.com/microsoft/Xbox-GDK-Samples/

@hajimehoshi hajimehoshi added this to the v2.4.0 milestone Apr 30, 2022
hajimehoshi added a commit that referenced this issue May 2, 2022
This is a hack to compile the example with -buildmode=c-archive (.a).

Updates #2084
@hajimehoshi
Copy link
Owner Author

hajimehoshi commented May 22, 2022

Only a very limited set of API (user32) is available

https://docs.microsoft.com/en-us/gaming/gdk/_content/gc/system/overviews/windows-messages

hajimehoshi added a commit that referenced this issue May 24, 2022
MapVirtualKeyW is not available on Xbox.

Updates #2084
hajimehoshi added a commit that referenced this issue May 24, 2022
hajimehoshi added a commit that referenced this issue May 29, 2022
@hajimehoshi hajimehoshi changed the title support Microsoft GDK support Xbox / Microsoft GDK May 29, 2022
hajimehoshi added a commit that referenced this issue May 31, 2022
hajimehoshi added a commit that referenced this issue May 31, 2022
hajimehoshi added a commit that referenced this issue May 31, 2022
hajimehoshi added a commit that referenced this issue Jun 1, 2022
hajimehoshi added a commit that referenced this issue Jun 3, 2022
…tiveWindow

GetActiveWindow doesn't work on Xbox.

Updates #2084
hajimehoshi added a commit that referenced this issue Jun 3, 2022
syscall.SyscallN is available as of Go 1.18 so this change implemented
our original syscallN function.

syscallN also panics when a given function pointer is 0. This helps
debugging especially on Xbox.

Updates #2084
hajimehoshi added a commit that referenced this issue Jun 10, 2022
hajimehoshi added a commit that referenced this issue Jun 13, 2022
hajimehoshi added a commit that referenced this issue Jun 23, 2022
hajimehoshi added a commit that referenced this issue Jun 23, 2022
…nstant buffers

Mapping for a constant buffer every frame might sometimes fails. We
are not sure the reason, but in the official examples, leaving mapped
regoins seems the way to go.

Updates #2084
Closes #2157
hajimehoshi added a commit that referenced this issue Jun 24, 2022
This is a preparation to switch the gamepad implementation for Xbox.

Updates #2084
hajimehoshi added a commit that referenced this issue Jun 24, 2022
This is a preparation to switch the gamepad implementation for Xbox.

Updates #2084
hajimehoshi added a commit that referenced this issue Jun 24, 2022
hajimehoshi added a commit that referenced this issue Jul 1, 2022
hajimehoshi added a commit that referenced this issue Jul 1, 2022
hajimehoshi added a commit that referenced this issue Jul 15, 2022
hajimehoshi added a commit that referenced this issue Jul 15, 2022
hajimehoshi added a commit that referenced this issue Jul 15, 2022
hajimehoshi added a commit to ebitengine/oto that referenced this issue Jul 16, 2022
hajimehoshi added a commit to ebitengine/oto that referenced this issue Jul 22, 2022
hajimehoshi added a commit that referenced this issue Jul 22, 2022
hajimehoshi added a commit that referenced this issue Jul 30, 2022
This is unnecessary, and doesn't work on Xbox.

Also DestroyWindow doesn't work on Xbox so skip this on Xbox.

Updates #2084
@hajimehoshi
Copy link
Owner Author

This is already done :D

hajimehoshi added a commit that referenced this issue Aug 11, 2022
Simply this was not needed.

Updates #2084
hajimehoshi added a commit that referenced this issue Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant