KeyboardInputPlugin
History
Version 2.4.4.0
(stable)
- Updated
the keyboard hook mechanism to run in its own thread and invoke
MediaPortal actions asynchronously. This should prevent the hook from
being disabled under Windows 7 due to time-outs.
- Removed
the keyboard hook recovery mechanism (re-enabling the keyboard hook once
it gets disabled by Windows 7 due to time-outs); the recovery mechanism is
incompatible with the new keyboard hook mechanism, and should no longer be
needed. If the keyboard hook still gets disabled (for example due to heavy
system load/swapping), you will need to minimize and then maximize
MediaPortal, or simply restart MediaPortal.
- Due
to the new keyboard hook mechanism, mappings are handled slightly
different. Previous versions would pass on any keys to MediaPortal if they
were not mapped under the current conditions. For example, if you mapped
the Enter key only under the condition ‘Media is playing’, if no media was
playing the plug-in would pass on the Enter key to MediaPortal, in effect
causing the ‘Select Item’ action. The new mechanism will never
pass on the Enter key to MediaPortal once it has been defined in the
plug-in configuration. In this example, you would want to add an
additional No Conditions -> Action ‘Select Item’ mapping to the Enter
key in the plug-in configuration.
- TODO:
Update README.HTML to reflect configuration screen changes
Version 2.4.3.0
(stable)
- Various
updates for MediaPortal 1.2.x compatibility
- Updated
some of the paths. Specifically, in order for your custom mappings to be
picked up, you may need to move [MP install
dir]\defaults\InputDeviceMappings\Keyboard.xml or [MP install
dir]\InputDeviceMappings\defaults\Keyboard.xml to %ProgramData%\Team
Mediaportal\Mediaportal\InputDeviceMappings
- TODO:
Update README.HTML to reflect configuration screen changes
Version 2.4.2.0
(stable)
- Restructured InputDeviceMappings directory
- Fixed exception in configuration screen
- Various configuration screen changes:
- Added
textbox for changing mapping name
- Added
'Mappings' root node; using the 'New' button new (remote) mappings can be
added to this root node
- Added
'Import' button that allows importing predefined mapping XML files
- Added
some warnings if the user is about to discard any changes (via Cancel or
Reset buttons)
- Added
a simple help screen, shown if no mappings are defined yet when the
configuration screen is opened
- Updated tooltips
- Updated MPEI package:
- Default
mapping is no longer installed
- Instead,
all available predefined mappings are copied to the MediaPortal directory;
the user can later import one or more of these using the configuration
'Import' button
- Updated predefined mappings:
- Added Speedlink SL-6399
remote control
- Updated
ShortCut'er plugin emulator mapping; added sounds
Version 2.4.1.0
(stable)
- Various configuration screen changes:
- Added
tooltips for various UI elements
- Changed
some button names to clarify their meaning
- Fixed
event handling for comboboxes (sometimes selection change wasn't noticed)
- Removed
'Learn Mode' checkbox (Key input field is now always in learning mode)
- Instead
of cryptic numeric keycodes, actual key names are now shown
- Some
further code clean-up.
- Added predefined mappings:
- ShortCut'er plug-in
emulator mapping
Version 2.4.0.0
(stable)
- Implemented
automatic keyboard hook recovery if the keyboard hook is disabled by
Windows for any reason.
- Some
further code clean-up.
Version 2.4.0.0
(beta)
- Greatly
simplified and improved key interception code
- State
of modifier keys is now determined by GetAsyncKeyState; no more need to
manually maintain a collection of currently pressed modifier keys.
- Unmapped
keys are left untouched, e.g. they will simply pass through to
MediaPortal and/or the system. So no more need to re-send intercepted
keys using SendKeys.SendWait, which didn't support all key combinations
correctly.
- Somewhere
along the way, the 'duplicate key press' problem was introduced again
(previously fixed in 2.0.0.0). This has been fixed again; keystrokes
handled by this plug-in will not pass through to MediaPortal and/or the
system.
- Win-keys
can be used as modifiers again.
- Massive code clean-up.
- Added predefined mappings:
- GoTView USB Remote
Control
- YaoCoo MCE Clone Remote
Control
- Default keyboard
shortcuts
- MyKeys plug-in emulator
mapping
Version 2.3.0.0
- Not
using MouseKeyboardLibrary.dll anymore :)
- Some bug-fixes
- Massive code clean-up
Version 2.2.0.0
- Using
MouseKeyboardLibrary.dll instead of proprietary hook
- Code clean-up
Version 2.1.0.0
- Unified log entries
- KEY
action is fixed (SendKeys.SendWait)
- No
sounds played if player is playing (standard MP behavior)
- Win
keys are not modifiers anymore
- they
have standard key behavior, you can't use win+something in key map
- Resetting
modifier keys is now done on keyup
- you
can now hold ctrl and press keys, they would all have ctrl modifier
- Better
handling of keys not mapped through the plugin
- Better hook behavior
- other
hooks can now "see" pressed keys too
Version 2.0.0.0
- Changed key interception mechanism:
- Captures
virtually all key combinations, including Win-keys.
- Keystrokes
that are mapped by this plug-in will be 'eaten'; they will not be passed
on to MediaPortal, so no more 'double' key presses or the need to remove
MediaPortal’s keymap.xml.
- (Limited)
support for passing through keystrokes that are not mapped by this
plug-in.
- Integrated
'Add/Remove Buttons' and 'Button Mapping' configuration screens into
single configuration screen.
- Added
support for mapping keystrokes to plug-in windows (as opposed to only
standard MediaPortal windows).
- Respects
MediaPortal configuration paths; no more need to copy Keyboard.xml around
and should work correctly with Windows Vista and up.
Version 1.1.0.0
- Added
configuration screens for adding/changing/removing buttons. This includes
a learning mode (press the key you want and see the code), and automatic
creation of the Keyboard.xml file if it does not yet exist.
Version 1.0.0.0