mirror of
https://github.com/R-YaTian/TinkeDSi.git
synced 2025-06-18 08:35:35 -04:00

* Add support to change the map char info (PMAC section) in NFTR font files * Fixed problem with some fonts * Improved NINOKUNI plugin to pack .N2D files * Added support for SUBARASHIKI game (The world end with you) -> Unpack [pack] files * Added option to search files by offset -> Offset: 00000000 * Improved hexadecimal editor
28 lines
770 B
C#
28 lines
770 B
C#
using System;
|
|
using System.Drawing;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace Be.Windows.Forms
|
|
{
|
|
internal static class NativeMethods
|
|
{
|
|
// Caret definitions
|
|
[DllImport("user32.dll", SetLastError=true)]
|
|
public static extern bool CreateCaret(IntPtr hWnd, IntPtr hBitmap, int nWidth, int nHeight);
|
|
|
|
[DllImport("user32.dll", SetLastError=true)]
|
|
public static extern bool ShowCaret(IntPtr hWnd);
|
|
|
|
[DllImport("user32.dll", SetLastError=true)]
|
|
public static extern bool DestroyCaret();
|
|
|
|
[DllImport("user32.dll", SetLastError=true)]
|
|
public static extern bool SetCaretPos(int X, int Y);
|
|
|
|
// Key definitions
|
|
public const int WM_KEYDOWN = 0x100;
|
|
public const int WM_KEYUP = 0x101;
|
|
public const int WM_CHAR = 0x102;
|
|
}
|
|
}
|