- Notifications
You must be signed in to change notification settings - Fork0
MonoGame IME Helper for all platforms
License
ryancheung/MonoGame.IMEHelper.old
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
- MonoGame.Framework.WindowsDX
- MonoGame.Framework.DesktopGL
- MonoGame.Framework.Android
- MonoGame.Framework.iOS
PM> Install-Package MonoGame.IMEHelper.WindowsDX
All available packages for specific platforms:
MonoGame.IMEHelper.WindowsDXMonoGame.IMEHelper.DesktopGLMonoGame.IMEHelper.AndroidMonoGame.IMEHelper.iOSMonoGame.IMEHelper.Common
protectedoverridevoidInitialize(){imeHandler=newWinFormsIMEHandle(this);imeHandler.TextInput+=(s,e)=>{ ...};}
imeHandler = new WinFormsIMEHandler(this); imeHandler.TextInput += (s, e) => { ... }; imeHandler.TextComposition += (s, e) => { ... };
Note thatTextComposition
event only works on WindowsDX platform due to limitation of the underlying platform
If you has used a shared netstandard project to share game code. You can reference theMonoGame.IMEHelper.Common
package. It's just includes API interfaces and no implementation. Then you add the platform specific package to include the platform IME implementation.
imeHandler.StartTextComposition();
imeHandler.StopTextComposition();
imeHandler.VirtualKeyboardHeight
You have to change your Activity's base class toAndroidGameActivityIME
, like the following:
publicclassActivity1:AndroidGameActivityIME{protectedoverridevoidOnCreate(Bundlebundle){base.OnCreate(bundle);varg=newGame1();SetContentView((View)g.Services.GetService(typeof(View)));g.Run();}}
MonoGame.IMEHelper is released under theThe MIT License (MIT).
About
MonoGame IME Helper for all platforms
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.