@@ -22,32 +22,33 @@ const (
2222 FASTPATH_INPUT_EVENT_QOE_TIMESTAMP = 6
2323)
2424
25- var eventCodesMap = scalar.UintMapSymStr {
26- FASTPATH_INPUT_EVENT_SCANCODE : "fastpath_input_event_scancode" ,
27- FASTPATH_INPUT_EVENT_MOUSE : "fastpath_input_event_mouse" ,
28- FASTPATH_INPUT_EVENT_MOUSEX : "fastpath_input_event_mousex" ,
29- FASTPATH_INPUT_EVENT_SYNC : "fastpath_input_event_sync" ,
30- FASTPATH_INPUT_EVENT_UNICODE : "fastpath_input_event_unicode" ,
31- FASTPATH_INPUT_EVENT_QOE_TIMESTAMP : "fastpath_input_event_qoe_timestamp" ,
32- }
25+ // commented because unused but we should use one-day
26+ //var eventCodesMap = scalar.UintMapSymStr{
27+ // FASTPATH_INPUT_EVENT_SCANCODE: "fastpath_input_event_scancode",
28+ // FASTPATH_INPUT_EVENT_MOUSE: "fastpath_input_event_mouse",
29+ // FASTPATH_INPUT_EVENT_MOUSEX: "fastpath_input_event_mousex",
30+ // FASTPATH_INPUT_EVENT_SYNC: "fastpath_input_event_sync",
31+ // FASTPATH_INPUT_EVENT_UNICODE: "fastpath_input_event_unicode",
32+ // FASTPATH_INPUT_EVENT_QOE_TIMESTAMP: "fastpath_input_event_qoe_timestamp",
33+ //}
3334
34- var eventFnMap = map [int ]interface {}{
35- FASTPATH_INPUT_EVENT_SCANCODE : parseFastpathInputEventScancode ,
36- FASTPATH_INPUT_EVENT_MOUSE : parseFastpathInputEventMouse ,
37- FASTPATH_INPUT_EVENT_MOUSEX : parseFastpathInputEventMousex ,
38- FASTPATH_INPUT_EVENT_SYNC : parseFastpathInputEventSync ,
39- FASTPATH_INPUT_EVENT_UNICODE : parseFastpathInputEventUnicode ,
40- FASTPATH_INPUT_EVENT_QOE_TIMESTAMP : parseFastpathInputEventQoeTimestamp ,
41- }
35+ // var eventFnMap = map[int]interface{}{
36+ // FASTPATH_INPUT_EVENT_SCANCODE: parseFastpathInputEventScancode,
37+ // FASTPATH_INPUT_EVENT_MOUSE: parseFastpathInputEventMouse,
38+ // FASTPATH_INPUT_EVENT_MOUSEX: parseFastpathInputEventMousex,
39+ // FASTPATH_INPUT_EVENT_SYNC: parseFastpathInputEventSync,
40+ // FASTPATH_INPUT_EVENT_UNICODE: parseFastpathInputEventUnicode,
41+ // FASTPATH_INPUT_EVENT_QOE_TIMESTAMP: parseFastpathInputEventQoeTimestamp,
42+ // }
4243
43- var fastPathInputEventLengthsMap = map [int ]int {
44- FASTPATH_INPUT_EVENT_SCANCODE : 2 ,
45- FASTPATH_INPUT_EVENT_MOUSE : 7 ,
46- FASTPATH_INPUT_EVENT_MOUSEX : 7 ,
47- FASTPATH_INPUT_EVENT_SYNC : 1 ,
48- FASTPATH_INPUT_EVENT_UNICODE : 3 ,
49- FASTPATH_INPUT_EVENT_QOE_TIMESTAMP : 5 ,
50- }
44+ // var fastPathInputEventLengthsMap = map[int]int{
45+ // FASTPATH_INPUT_EVENT_SCANCODE: 2,
46+ // FASTPATH_INPUT_EVENT_MOUSE: 7,
47+ // FASTPATH_INPUT_EVENT_MOUSEX: 7,
48+ // FASTPATH_INPUT_EVENT_SYNC: 1,
49+ // FASTPATH_INPUT_EVENT_UNICODE: 3,
50+ // FASTPATH_INPUT_EVENT_QOE_TIMESTAMP: 5,
51+ // }
5152
5253func ParseFastPathInput (d * decode.D , length int64 ) {
5354 d .FieldStruct ("fastpath_input" , func (d * decode.D ) {
@@ -98,30 +99,31 @@ func ParseFastPathInput(d *decode.D, length int64) {
9899 })
99100}
100101
101- func parseFastpathInputEventScancode (d * decode.D ) {
102- // https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-rdpbcgr/089d362b-31eb-4a1a-b6fa-92fe61bb5dbf
103- d .FieldU8 ("key_code" , charMapper )
104- }
102+ //commented because unused but we should use one-day
103+ //func parseFastpathInputEventScancode(d *decode.D) {
104+ // // https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-rdpbcgr/089d362b-31eb-4a1a-b6fa-92fe61bb5dbf
105+ // d.FieldU8("key_code", CharMapper)
106+ //}
105107
106- func parseFastpathInputEventMouse (d * decode.D ) {
107- // https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-rdpbcgr/16a96ded-b3d3-4468-b993-9c7a51297510
108- d .FieldU16 ("pointer_flags" , scalar .UintHex )
109- d .FieldU16 ("x" )
110- d .FieldU16 ("y" )
111- }
112- func parseFastpathInputEventMousex (d * decode.D ) {
113- // https: //docs.microsoft.com/en-us/openspecs/windows_protocols/ms-rdpbcgr/2ef7632f-2f2a-4de7-ab58-2585cedcdf48
114- d .FieldU16 ("pointer_flags" , scalar .UintHex )
115- d .FieldU16 ("x" )
116- d .FieldU16 ("y" )
117- }
118- func parseFastpathInputEventSync (d * decode.D ) {
119- // https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-rdpbcgr/6c5d0ef9-4653-4d69-9ba9-09ba3acd660f
120- d .FieldU16 ("padding" )
121- d .FieldU32 ("toggle_flags" )
122- }
123- func parseFastpathInputEventUnicode (d * decode.D ) {
124- // https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-rdpbcgr/e7b13e98-d800-42bb-9a1d-6948537d2317
125- d .FieldU16 ("unicode_code" , scalar .UintHex )
126- }
127- func parseFastpathInputEventQoeTimestamp (d * decode.D ) {}
108+ // func parseFastpathInputEventMouse(d *decode.D) {
109+ // // https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-rdpbcgr/16a96ded-b3d3-4468-b993-9c7a51297510
110+ // d.FieldU16("pointer_flags", scalar.UintHex)
111+ // d.FieldU16("x")
112+ // d.FieldU16("y")
113+ // }
114+ // func parseFastpathInputEventMousex(d *decode.D) {
115+ // // https: //docs.microsoft.com/en-us/openspecs/windows_protocols/ms-rdpbcgr/2ef7632f-2f2a-4de7-ab58-2585cedcdf48
116+ // d.FieldU16("pointer_flags", scalar.UintHex)
117+ // d.FieldU16("x")
118+ // d.FieldU16("y")
119+ // }
120+ // func parseFastpathInputEventSync(d *decode.D) {
121+ // // https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-rdpbcgr/6c5d0ef9-4653-4d69-9ba9-09ba3acd660f
122+ // d.FieldU16("padding")
123+ // d.FieldU32("toggle_flags")
124+ // }
125+ // func parseFastpathInputEventUnicode(d *decode.D) {
126+ // // https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-rdpbcgr/e7b13e98-d800-42bb-9a1d-6948537d2317
127+ // d.FieldU16("unicode_code", scalar.UintHex)
128+ // }
129+ // func parseFastpathInputEventQoeTimestamp(d *decode.D) {}
0 commit comments