Win32 API 日本語リファレンス
ホームUI.TabletPC › RealTimeStylusDataInterest

RealTimeStylusDataInterest

列挙型
基底型i4

メンバー 20

名前10進16進説明
RTSDI_AllData-10xFFFFFFFFプラグインはすべてのスタイラス データについて通知を受け取ります。
RTSDI_None00x0プラグインはどのスタイラス データについても通知を受け取りません。
RTSDI_Error10x1エラーが入力キューに追加されました。
RTSDI_RealTimeStylusEnabled20x2RealTimeStylus Class オブジェクトが有効になりました。
RTSDI_RealTimeStylusDisabled40x4RealTimeStylus Class オブジェクトが無効になりました。
RTSDI_StylusNew80x8RealTimeStylus Class オブジェクトが新しい Stylus オブジェクトを検出しました。
RTSDI_StylusInRange160x10Stylus オブジェクトがデジタイザーの検出範囲内にあります。スタイラスが RealTimeStylus Class オブジェクトの入力領域に入りつつあること、または RealTimeStylus Class オブジェクトの入力領域上にあるデジタイザーの検出範囲に入りつつあることを、実装するプラグインに通知します。
RTSDI_InAirPackets320x20RealTimeStylus Class オブジェクトがデジタイザーの検出範囲内にあり、接触せずに移動しています。
RTSDI_StylusOutOfRange640x40RealTimeStylus Class オブジェクトがデジタイザーの検出範囲外にあります。スタイラスが RealTimeStylus Class オブジェクトの入力領域から離れつつあること、または RealTimeStylus Class オブジェクトの入力領域上にあるデジタイザーの検出範囲から離れつつあることを、実装するプラグインに知らせます。
RTSDI_StylusDown1280x80スタイラスがデジタイザーに接触しています。
RTSDI_Packets2560x100スタイラスがデジタイザーに接触した状態で移動しています。
RTSDI_StylusUp5120x200スタイラスがデジタイザーとの物理的な接触を解除しました。
RTSDI_StylusButtonUp10240x400ユーザーがスタイラス ボタンを離しました。
RTSDI_StylusButtonDown20480x800ユーザーがスタイラス ボタンを押しました。
RTSDI_SystemEvents40960x1000システム イベントが検出されました。
RTSDI_TabletAdded81920x2000新しいタブレット デバイスがシステムによって検出されました。Microsoft.Ink.Tablet オブジェクトがシステムに追加されたときに、実装するプラグインに通知します。
RTSDI_TabletRemoved163840x4000タブレット デバイスがシステムから削除されました。Microsoft.Ink.Tablet オブジェクトがシステムから削除されたときに、実装するプラグインに通知します。
RTSDI_CustomStylusDataAdded327680x8000プラグインがキューにデータを追加しました。カスタム データの種類は GUID または Type のいずれかで識別できます。
RTSDI_UpdateMapping655360x10000画面へのタブレットのマッピングが変更または設定されました。
RTSDI_DefaultEvents377660x9386プラグインは既定のスタイラス データを受け取ります。

公式ドキュメント

プラグインが受け取るイベント通知を指定するためにプラグインが使用する値を定義します。

解説(Remarks)

RealTimeStylusDataInterest Enumeration の値は、データ通知のセットを定義するビット単位の組み合わせとして使用します。通知を受け取りたいイベントだけを指定するために RealTimeStylusDataInterest Enumeration を使用してください。これによりパフォーマンスが向上します。

RealTimeStylus Class は、パケット データを取得する際に、指定された順序で各プラグインを呼び出してプラグインに通知します。これらの通知を受け取るプラグインの順序と種類は、開発者が制御します。イベント内のパケット データは、RealTimeStylus Class オブジェクトが呼び出すプラグインによって変更できます。

プラグインのどのメソッドが呼び出されるかは、IStylusPlugin Interface:: IStylusPlugin::DataInterest Method メソッドを実装することで制御できます。

既定のイベントは次のとおりです。

出典・ライセンス: 上記「公式ドキュメント」の内容は Microsoft の Win32 API ドキュメント(MicrosoftDocs/sdk-api)を日本語に翻訳・改変したものです。© Microsoft Corporation. CC BY 4.0 で提供。
Microsoft 公式リファレンス: 英語 (en-us) · 日本語 (ja-jp) · 原文ソース (GitHub)

各言語での定義

列挙メンバーの定義。HSP タブは #define global(値は16進)。

typedef enum RealTimeStylusDataInterest : int {
    RTSDI_AllData = -1,
    RTSDI_None = 0,
    RTSDI_Error = 1,
    RTSDI_RealTimeStylusEnabled = 2,
    RTSDI_RealTimeStylusDisabled = 4,
    RTSDI_StylusNew = 8,
    RTSDI_StylusInRange = 16,
    RTSDI_InAirPackets = 32,
    RTSDI_StylusOutOfRange = 64,
    RTSDI_StylusDown = 128,
    RTSDI_Packets = 256,
    RTSDI_StylusUp = 512,
    RTSDI_StylusButtonUp = 1024,
    RTSDI_StylusButtonDown = 2048,
    RTSDI_SystemEvents = 4096,
    RTSDI_TabletAdded = 8192,
    RTSDI_TabletRemoved = 16384,
    RTSDI_CustomStylusDataAdded = 32768,
    RTSDI_UpdateMapping = 65536,
    RTSDI_DefaultEvents = 37766
} RealTimeStylusDataInterest;
public enum RealTimeStylusDataInterest : int
{
    RTSDI_AllData = -1,
    RTSDI_None = 0,
    RTSDI_Error = 1,
    RTSDI_RealTimeStylusEnabled = 2,
    RTSDI_RealTimeStylusDisabled = 4,
    RTSDI_StylusNew = 8,
    RTSDI_StylusInRange = 16,
    RTSDI_InAirPackets = 32,
    RTSDI_StylusOutOfRange = 64,
    RTSDI_StylusDown = 128,
    RTSDI_Packets = 256,
    RTSDI_StylusUp = 512,
    RTSDI_StylusButtonUp = 1024,
    RTSDI_StylusButtonDown = 2048,
    RTSDI_SystemEvents = 4096,
    RTSDI_TabletAdded = 8192,
    RTSDI_TabletRemoved = 16384,
    RTSDI_CustomStylusDataAdded = 32768,
    RTSDI_UpdateMapping = 65536,
    RTSDI_DefaultEvents = 37766,
}
Public Enum RealTimeStylusDataInterest As Integer
    RTSDI_AllData = -1
    RTSDI_None = 0
    RTSDI_Error = 1
    RTSDI_RealTimeStylusEnabled = 2
    RTSDI_RealTimeStylusDisabled = 4
    RTSDI_StylusNew = 8
    RTSDI_StylusInRange = 16
    RTSDI_InAirPackets = 32
    RTSDI_StylusOutOfRange = 64
    RTSDI_StylusDown = 128
    RTSDI_Packets = 256
    RTSDI_StylusUp = 512
    RTSDI_StylusButtonUp = 1024
    RTSDI_StylusButtonDown = 2048
    RTSDI_SystemEvents = 4096
    RTSDI_TabletAdded = 8192
    RTSDI_TabletRemoved = 16384
    RTSDI_CustomStylusDataAdded = 32768
    RTSDI_UpdateMapping = 65536
    RTSDI_DefaultEvents = 37766
End Enum
import enum

class RealTimeStylusDataInterest(enum.IntEnum):
    RTSDI_AllData = -1
    RTSDI_None = 0
    RTSDI_Error = 1
    RTSDI_RealTimeStylusEnabled = 2
    RTSDI_RealTimeStylusDisabled = 4
    RTSDI_StylusNew = 8
    RTSDI_StylusInRange = 16
    RTSDI_InAirPackets = 32
    RTSDI_StylusOutOfRange = 64
    RTSDI_StylusDown = 128
    RTSDI_Packets = 256
    RTSDI_StylusUp = 512
    RTSDI_StylusButtonUp = 1024
    RTSDI_StylusButtonDown = 2048
    RTSDI_SystemEvents = 4096
    RTSDI_TabletAdded = 8192
    RTSDI_TabletRemoved = 16384
    RTSDI_CustomStylusDataAdded = 32768
    RTSDI_UpdateMapping = 65536
    RTSDI_DefaultEvents = 37766
// RealTimeStylusDataInterest
pub const RTSDI_AllData: i32 = -1;
pub const RTSDI_None: i32 = 0;
pub const RTSDI_Error: i32 = 1;
pub const RTSDI_RealTimeStylusEnabled: i32 = 2;
pub const RTSDI_RealTimeStylusDisabled: i32 = 4;
pub const RTSDI_StylusNew: i32 = 8;
pub const RTSDI_StylusInRange: i32 = 16;
pub const RTSDI_InAirPackets: i32 = 32;
pub const RTSDI_StylusOutOfRange: i32 = 64;
pub const RTSDI_StylusDown: i32 = 128;
pub const RTSDI_Packets: i32 = 256;
pub const RTSDI_StylusUp: i32 = 512;
pub const RTSDI_StylusButtonUp: i32 = 1024;
pub const RTSDI_StylusButtonDown: i32 = 2048;
pub const RTSDI_SystemEvents: i32 = 4096;
pub const RTSDI_TabletAdded: i32 = 8192;
pub const RTSDI_TabletRemoved: i32 = 16384;
pub const RTSDI_CustomStylusDataAdded: i32 = 32768;
pub const RTSDI_UpdateMapping: i32 = 65536;
pub const RTSDI_DefaultEvents: i32 = 37766;
// RealTimeStylusDataInterest
const (
	RTSDI_AllData int32 = -1
	RTSDI_None int32 = 0
	RTSDI_Error int32 = 1
	RTSDI_RealTimeStylusEnabled int32 = 2
	RTSDI_RealTimeStylusDisabled int32 = 4
	RTSDI_StylusNew int32 = 8
	RTSDI_StylusInRange int32 = 16
	RTSDI_InAirPackets int32 = 32
	RTSDI_StylusOutOfRange int32 = 64
	RTSDI_StylusDown int32 = 128
	RTSDI_Packets int32 = 256
	RTSDI_StylusUp int32 = 512
	RTSDI_StylusButtonUp int32 = 1024
	RTSDI_StylusButtonDown int32 = 2048
	RTSDI_SystemEvents int32 = 4096
	RTSDI_TabletAdded int32 = 8192
	RTSDI_TabletRemoved int32 = 16384
	RTSDI_CustomStylusDataAdded int32 = 32768
	RTSDI_UpdateMapping int32 = 65536
	RTSDI_DefaultEvents int32 = 37766
)
const
  RTSDI_AllData = -1;
  RTSDI_None = 0;
  RTSDI_Error = 1;
  RTSDI_RealTimeStylusEnabled = 2;
  RTSDI_RealTimeStylusDisabled = 4;
  RTSDI_StylusNew = 8;
  RTSDI_StylusInRange = 16;
  RTSDI_InAirPackets = 32;
  RTSDI_StylusOutOfRange = 64;
  RTSDI_StylusDown = 128;
  RTSDI_Packets = 256;
  RTSDI_StylusUp = 512;
  RTSDI_StylusButtonUp = 1024;
  RTSDI_StylusButtonDown = 2048;
  RTSDI_SystemEvents = 4096;
  RTSDI_TabletAdded = 8192;
  RTSDI_TabletRemoved = 16384;
  RTSDI_CustomStylusDataAdded = 32768;
  RTSDI_UpdateMapping = 65536;
  RTSDI_DefaultEvents = 37766;
// RealTimeStylusDataInterest
pub const RTSDI_AllData: i32 = -1;
pub const RTSDI_None: i32 = 0;
pub const RTSDI_Error: i32 = 1;
pub const RTSDI_RealTimeStylusEnabled: i32 = 2;
pub const RTSDI_RealTimeStylusDisabled: i32 = 4;
pub const RTSDI_StylusNew: i32 = 8;
pub const RTSDI_StylusInRange: i32 = 16;
pub const RTSDI_InAirPackets: i32 = 32;
pub const RTSDI_StylusOutOfRange: i32 = 64;
pub const RTSDI_StylusDown: i32 = 128;
pub const RTSDI_Packets: i32 = 256;
pub const RTSDI_StylusUp: i32 = 512;
pub const RTSDI_StylusButtonUp: i32 = 1024;
pub const RTSDI_StylusButtonDown: i32 = 2048;
pub const RTSDI_SystemEvents: i32 = 4096;
pub const RTSDI_TabletAdded: i32 = 8192;
pub const RTSDI_TabletRemoved: i32 = 16384;
pub const RTSDI_CustomStylusDataAdded: i32 = 32768;
pub const RTSDI_UpdateMapping: i32 = 65536;
pub const RTSDI_DefaultEvents: i32 = 37766;
const
  RTSDI_AllData* = -1
  RTSDI_None* = 0
  RTSDI_Error* = 1
  RTSDI_RealTimeStylusEnabled* = 2
  RTSDI_RealTimeStylusDisabled* = 4
  RTSDI_StylusNew* = 8
  RTSDI_StylusInRange* = 16
  RTSDI_InAirPackets* = 32
  RTSDI_StylusOutOfRange* = 64
  RTSDI_StylusDown* = 128
  RTSDI_Packets* = 256
  RTSDI_StylusUp* = 512
  RTSDI_StylusButtonUp* = 1024
  RTSDI_StylusButtonDown* = 2048
  RTSDI_SystemEvents* = 4096
  RTSDI_TabletAdded* = 8192
  RTSDI_TabletRemoved* = 16384
  RTSDI_CustomStylusDataAdded* = 32768
  RTSDI_UpdateMapping* = 65536
  RTSDI_DefaultEvents* = 37766
enum RealTimeStylusDataInterest : int {
    RTSDI_AllData = -1,
    RTSDI_None = 0,
    RTSDI_Error = 1,
    RTSDI_RealTimeStylusEnabled = 2,
    RTSDI_RealTimeStylusDisabled = 4,
    RTSDI_StylusNew = 8,
    RTSDI_StylusInRange = 16,
    RTSDI_InAirPackets = 32,
    RTSDI_StylusOutOfRange = 64,
    RTSDI_StylusDown = 128,
    RTSDI_Packets = 256,
    RTSDI_StylusUp = 512,
    RTSDI_StylusButtonUp = 1024,
    RTSDI_StylusButtonDown = 2048,
    RTSDI_SystemEvents = 4096,
    RTSDI_TabletAdded = 8192,
    RTSDI_TabletRemoved = 16384,
    RTSDI_CustomStylusDataAdded = 32768,
    RTSDI_UpdateMapping = 65536,
    RTSDI_DefaultEvents = 37766,
}
#define global RTSDI_AllData                0xFFFFFFFF
#define global RTSDI_None                   0x0
#define global RTSDI_Error                  0x1
#define global RTSDI_RealTimeStylusEnabled  0x2
#define global RTSDI_RealTimeStylusDisabled 0x4
#define global RTSDI_StylusNew              0x8
#define global RTSDI_StylusInRange          0x10
#define global RTSDI_InAirPackets           0x20
#define global RTSDI_StylusOutOfRange       0x40
#define global RTSDI_StylusDown             0x80
#define global RTSDI_Packets                0x100
#define global RTSDI_StylusUp               0x200
#define global RTSDI_StylusButtonUp         0x400
#define global RTSDI_StylusButtonDown       0x800
#define global RTSDI_SystemEvents           0x1000
#define global RTSDI_TabletAdded            0x2000
#define global RTSDI_TabletRemoved          0x4000
#define global RTSDI_CustomStylusDataAdded  0x8000
#define global RTSDI_UpdateMapping          0x10000
#define global RTSDI_DefaultEvents          0x9386