This commit is contained in:
Daniel Collin 2016-05-08 13:34:38 +02:00
parent 0ffa3bf196
commit df60ca8ecd
2 changed files with 2 additions and 4 deletions

View file

@ -1,7 +1,7 @@
extern crate minifb;
use minifb::{Window, Key, Scale, WindowOptions, Menu, MenuItem};
use minifb::{MENU_KEY_COMMAND, MENU_KEY_CTRL};
use minifb::{Window, Key, Scale, WindowOptions, Menu};
use minifb::{MENU_KEY_CTRL};
const WIDTH: usize = 640;
const HEIGHT: usize = 360;

View file

@ -625,8 +625,6 @@ uint64_t mfb_add_menu_item(
NSMenuItem* newItem = [[NSMenuItem alloc] initWithTitle:name action:@selector(onMenuPress:) keyEquivalent:@""];
[newItem setTag:menu_id];
printf("set menu id %d\n", menu_id);
// This code may look a bit weird but is here for a reason:
//
// In order to make it easier to bulid cross-platform apps Ctrl is often used as