This commit is contained in:
luboslenco
2025-07-31 22:13:40 +02:00
parent 1fe157dd09
commit 6a427b6d6c
2 changed files with 27 additions and 248 deletions
+2 -9
View File
@@ -8,9 +8,7 @@
#include <IOKit/hid/IOHIDKeys.h>
#include <IOKit/hid/IOHIDManager.h>
struct gpu_texture;
@interface BasicOpenGLView : MTKView {
@interface BasicMTKView : MTKView {
@private
id<MTLDevice> device;
id<MTLCommandQueue> commandQueue;
@@ -20,10 +18,8 @@ struct gpu_texture;
- (CAMetalLayer *)metalLayer;
- (id<MTLDevice>)metalDevice;
- (id<MTLCommandQueue>)metalQueue;
- (void)keyDown:(NSEvent *)theEvent;
- (void)keyUp:(NSEvent *)theEvent;
- (void)mouseDown:(NSEvent *)theEvent;
- (void)mouseUp:(NSEvent *)theEvent;
- (void)mouseMoved:(NSEvent *)theEvent;
@@ -34,13 +30,10 @@ struct gpu_texture;
- (void)scrollWheel:(NSEvent *)theEvent;
- (NSDragOperation)draggingEntered:(id<NSDraggingInfo>)sender;
- (BOOL)performDragOperation:(id<NSDraggingInfo>)sender;
- (void)update; // moved or resized
- (void)update;
- (BOOL)acceptsFirstResponder;
- (BOOL)becomeFirstResponder;
- (BOOL)resignFirstResponder;
- (id)initWithFrame:(NSRect)frameRect;
- (void)resize:(NSSize)size;