Jump to content

Archived

This topic is now archived and is closed to further replies.

Aprillion

Editing keyboard shortcuts

1 post in this topic Last Reply

Highlighted Posts

  • Original Poster
  • Posted:
    Last Online:  
     

    Hi, i'd like to add shortcuts to my CXL 2012, like R for a road... Can you somebody point me out where to start looking, please?

    I already found code like this in \Data\Design\Script\GameEvents\KeyEvents.lua file:

    [code]function OnKeyDownEvent:VK_RETURN() if KEYEVENTS.EnableLogs then LOG_WARNING("VK_RETURN KeyDown") end InterfaceMgr:EnterPressed(); end[/code]

    But how do I catch the event of pressing 'R' instead of predefined constants or whatever VK_RETURN is?

    Then, how do I find out what function to call (what pak file / lua script should i look at to find out what happens when i press a road button, or a button to create residential zone, ...)?

    Thanks for any advice!!

    Share this post


    Link to post
    Share on other sites

    • Recently Browsing   0 members

      No registered users viewing this page.

    ×

    Thank You for the Continued Support!

    Simtropolis depends on donations to fund site maintenance costs.
    Without your support, we just would not be in our 24th year online!  You really help make this a great community. *:thumb:

    But we still need your support to stay online. If you're able to, please consider a donation to help us stay up and running. This helps sustain a platform where we can share our community creations for years to come.

    Make a Donation, Get a Gift!

    Expand your city with the best from the Simtropolis Exchange.
    Make a Donation and get one or all three discs today!

    STEX Collections

    By way of a "Thank You" gift, we'd like to send you our STEX Collector's DVD. It's some of the best buildings, lots, maps and mods collected for you over the years. Check out the STEX Collections for more info.

    Each donation helps keep Simtropolis online, open and free!

    Thank you for reading and enjoy the site!

    More About STEX Collections