Skip to content

Commit

Permalink
beetle add controls stubs
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph Mattiello <[email protected]>
  • Loading branch information
JoeMatt committed Dec 31, 2024
1 parent 26b5e70 commit 25c3ac6
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Cores/BeetlePSX/PVBeetlePSXCore/PVBeetlePSXCoreBridge.mm
Original file line number Diff line number Diff line change
Expand Up @@ -244,4 +244,27 @@ - (void *)getVariable:(const char *)variable {
return NULL;
}

// Override buffer size for BeetlePSX's requirements
- (CGSize)bufferSize {
return CGSizeMake(640, 480); // Standard PSX resolution
}

// Set aspect ratio
- (CGSize)aspectSize {
return CGSizeMake(4, 3); // Standard PSX aspect ratio
}

#pragma MARK: Controls
- (void)didPushPSXButton:(PVPSXButton)button forPlayer:(NSInteger)player {
DLOG(@"TODO");
}

- (void)didReleasePSXButton:(PVPSXButton)button forPlayer:(NSInteger)player {
DLOG(@"TODO");
}

- (void)didMovePSXJoystickDirection:(PVPSXButton)button withXValue:(CGFloat)xValue withYValue:(CGFloat)yValue forPlayer:(NSInteger)player {
DLOG(@"TODO");
}

@end

0 comments on commit 25c3ac6

Please sign in to comment.