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

UI: Device emulation #1478

Draft
wants to merge 32 commits into
base: master
Choose a base branch
from
Draft

Conversation

faha223
Copy link
Contributor

@faha223 faha223 commented Jul 15, 2023

Added functionality to emulate an Xbox Controller S or a Steel Battalion controller in addition to the existing emulated Xbox controller

@faha223 faha223 changed the title Device emulation UI: Device emulation Sep 23, 2023
typedef struct XIDSteelBattalionOutputReport {
uint8_t report_id;
uint8_t length;
uint8_t CockpitHatch_EmergencyEject;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
uint8_t CockpitHatch_EmergencyEject;
uint8_t EmergencyEject : 4;
uint8_t CockpitHatch : 4;
uint8_t Ignition : 4;
uint8_t Start : 4;
....

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've never seen this syntax before, but it looks like it could be really useful. Thanks!


static void print_xid_steel_battalion_output_data(XIDSteelBattalionOutputReport *state)
{
print_steel_battalion_leds("Cockpit Hatch", "Emergency Eject", state->CockpitHatch_EmergencyEject);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
print_steel_battalion_leds("Cockpit Hatch", "Emergency Eject", state->CockpitHatch_EmergencyEject);
fprintf(stderr, "%s: %d\n", "Emergency Eject", state->EmergencyEject);
fprintf(stderr, "%s: %d\n", "Cockpit Hatch", state->CockpitHatch);
fprintf(stderr, "%s: %d\n", "Ignition", state->Ignition);
fprintf(stderr, "%s: %d\n", "Start", state->Start);
....

@carlosgamer23
Copy link

The emulator could make it easier by having its own frontend, something close to PCSX2, so we can organize the games and put our own covers on them. Have you also thought about creating a compression format for the isos? Something like Dolphin did with RVZ, so that it is supported by Xemu (maybe a compression format called .xe ? Haha 😅)

build: Update arm64 target, handle target/arch independent pkg names
@faha223
Copy link
Contributor Author

faha223 commented May 11, 2024

I'm thinking I should maybe add light gun to this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants