Miac - Key Mapping

For MIAC users to discuss projects, applications, and any other issues related to the MIAC unit.

Moderators: Benj, Mods

User avatar
Jay Dee
Posts: 352
Joined: Tue Aug 18, 2009 6:42 pm
Has thanked: 116 times
Been thanked: 134 times
Contact:

Miac - Key Mapping

Postby Jay Dee » Mon Mar 09, 2015 2:20 pm

Hi,
Refreshing an old project and trying to add key mapping to a MIAC project for simulation purposes.
Does the standard MIAC component graphic have the 'keys' functionality built in?
The Key Mapping menu does not show up any devices or actions even when the MIAC graphic is shown.
Are they any examples out there?
regards, John.

User avatar
Jay Dee
Posts: 352
Joined: Tue Aug 18, 2009 6:42 pm
Has thanked: 116 times
Been thanked: 134 times
Contact:

Re: Miac - Key Mapping

Postby Jay Dee » Mon Mar 09, 2015 3:43 pm

Hmm. Ok build a new simple MAIC in V6 and seemed to be able to click on the buttons during simulation... My problem might be during the conversion from V5 to V6. J.
So it looks like you dont have any keyboard mappings as they are already built into the componet...

User avatar
Benj
Matrix Staff
Posts: 14299
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4394 times
Been thanked: 4123 times
Contact:

Re: Miac - Key Mapping

Postby Benj » Tue Mar 10, 2015 3:46 pm

Hello,

The MIAC component has click on events so you can click the buttons.

You can also use the Key mapping interface to allow you to simulate button presses based on keyboard input.

Here I have linked the 'A' key so that transistor output blinks on and off if either the 'A' key is pressed or the MIAC keypad is clicked.

MIAC_KeyMapping.fcfx
(5.34 KiB) Downloaded 267 times


The key mapping assignments can be accessed via the Edit -> Key Mappings menu.

User avatar
Jay Dee
Posts: 352
Joined: Tue Aug 18, 2009 6:42 pm
Has thanked: 116 times
Been thanked: 134 times
Contact:

Re: Miac - Key Mapping

Postby Jay Dee » Tue Mar 10, 2015 6:47 pm

Thanks Ben, will have a play.
I also liked the state toggle, state = (state+1)&1
useful. John.
These users thanked the author Jay Dee for the post:
Benj (Wed Mar 11, 2015 12:32 pm)
Rating: 5.26%