GameView.h 465 B

1234567891011121314151617181920
  1. //
  2. // GameView.h
  3. // danmaku
  4. //
  5. // Created by Sam Jaffe on 5/22/19.
  6. // Copyright © 2019 Sam Jaffe. All rights reserved.
  7. //
  8. #import <Cocoa/Cocoa.h>
  9. #import "GameBridge.h"
  10. @interface GameView : NSOpenGLView<NSWindowDelegate>
  11. @property (retain) IBOutlet GameBridge *gamebridge;
  12. - (void) press_key:(int)key forEvent:(NSEvent *)evt ns_key:(int)local
  13. down:(BOOL)pressed;
  14. - (void) toggle_key:(int)key forEvent:(NSEvent *)evt ns_key:(int)local;
  15. @end