Ted2 Where are the Modifiers defined?

About Monkey 2 Forums Monkey 2 Development Ted2 Where are the Modifiers defined?

This topic contains 2 replies, has 2 voices, and was last updated by  AdamStrange 2 years, 9 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1968

    AdamStrange
    Participant

    ok. in mainwindow.monkey2 > InitActions there are lots of:

    _fileNew.HotKeyModifiers=Modifier.Control

    Where is Modifier defined? What are the options?

    On the Mac, it is not Control it’s Command. I can simply put in an OS change here, but where are the Modifiers defined, so I know what to change to cause Modifiers.Command is illegal!

     

    MX2 has a real problem with transparency. In effect everything is grouped together and the compiler sorts out the dependancies for you (great by the way). But it makes debugging and code falling virtually impossible without constant help (nagging). The c++ or even old blitz way of doing things is a much better (in my opinion) way of doing things. E.G.

    You can’t reference anything without importing it in the file.

    E.G. In the above there really should be a header file in mainwindow.monkey2 to show what it’s dependants are?

    #1973

    therevills
    Participant

    Modifier is an Enum defined in mojo/input/keycodes.monkey2.

    #1982

    AdamStrange
    Participant

    Brilliant 🙂

    in Modules/mojo/input/keycodes.monkey you need to add the following:

    Command= LeftGui|RightGui

    to Modifiers

    There is actually a Gui definition already there. But on a mac this is Command or Cmd. There are also special icons used for the menu entires but that can be done another day 🙂

    1 off the list

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.