Skip to content

Commit

Permalink
Ready for version 1.2 release...
Browse files Browse the repository at this point in the history
  • Loading branch information
JLChnToZ committed Jan 17, 2014
1 parent ac32529 commit b5dbce7
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 3 deletions.
3 changes: 3 additions & 0 deletions IMEHelper/IME.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ public IMEHandler(Game game, bool showDefaultIMEWindow = false) {
_nativeWnd.onResultReceived += (s, e) => { if (onResultReceived != null) onResultReceived(s, e); };
}

/// <summary>
/// Corrected mouse / keyboard state
/// </summary>
public InputRemapper Input { get; private set; }

/// <summary>
Expand Down
1 change: 1 addition & 0 deletions IMEHelper/IMEHelper.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
<Compile Include="IMENativeWindow.cs" />
<Compile Include="IMMCompositionResultHandler.cs" />
<Compile Include="IMMNativeMethods.cs" />
<Compile Include="InputRemapper.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
Expand Down
19 changes: 18 additions & 1 deletion IMEHelper/InputRemapper.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
using System;
/*
* IME Helper Library
* Copyright (c) 2013-2014, Jeremy Lam [JLChnToZ], All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3.0 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
Expand Down
2 changes: 1 addition & 1 deletion IMEHelper/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("1.1.0.0")]
[assembly: AssemblyVersion("1.2.0.0")]
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,26 @@
IME Helper Library
=========

(中文說明在下方)

This is a library for using IME (Input Method Editor) in XNA Framework.

If you want the users are able to typing Chinese, Japanese, Korean, etc. in your XNA game/application with IME, this library might be what you want.

This library just wrapped the messages sent from the IME, and it does not contains any text editing component, thus you have to implement them yourselves.
This library just wrapped the messages sent from the IME, and it does not contains any text editing component, thus you have to implement them yourselves. (Or you can make this work with other XNA libraries with text editors if you can :D)

I have also included a sample game project called IMEHelperTest to test out and deomstrate how the library works. (Sorry for the undocumented code, but hope you can understand it.)

Please feel free to use this library as it is licensed with LGPLv3.

---

這是一個整合 IME (Input Method Editor) 到 XNA Framework 的程式類別庫。

如果你想使用者或玩家能夠在你用 XNA Framework 寫成的遊戲或者程式輸入中文、日文、韓文等,這大概就是你想要的東西了。

基本上這程式庫只是把 IME 輸出的訊息重新包裝使之可以更容易的在 XNA 的遊戲中使用,而它並不包含任何文字編輯器的元件,因此如果需要完整的文字編輯功能的話,你就需要自行編寫相應的程式了。(或者你可以把這東西整合到其他有 XNA 文字編輯器的程式庫吧,如果你做到的話 :D

我在這個檔案庫還包含了一個範例「遊戲」專案,用來示範怎樣把 IME 的訊息弄到遊戲中以及測試程式庫的功能。(範例程式可能有點亂,而且沒有加上註解,希望能看懂吧)

這個程式庫是以 LGPLv3 許可證發佈的,所以基本上你可以隨便自由的使用它。

0 comments on commit b5dbce7

Please sign in to comment.