Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_keysensor.inc

raw
1 { -*- buffer-read-only: t -*-
2
3 Copyright 2015-2024 Michalis Kamburelis.
4
5 This file is part of "Castle Game Engine".
6
7 "Castle Game Engine" is free software; see the file COPYING.txt,
8 included in this distribution, for details about the copyright.
9
10 "Castle Game Engine" is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13
14 ----------------------------------------------------------------------------
15 }
16
17 { Automatically generated node properties.
18
19 Do not edit this file manually!
20 To add new properties:
21 - add them to the text files in tools/internal/x3d-nodes-to-pascal/nodes-specification/ ,
22 - and regenerate include files by running x3d-nodes-to-pascal }
23
24 {$ifdef read_interface}
25
26 public
27 { Create node fields and events. }
28 procedure CreateNode; override;
29 class function ClassX3DType: String; override;
30
31 strict private FEventActionKeyPress: TSFInt32Event;
32 { }
33 public property EventActionKeyPress: TSFInt32Event read FEventActionKeyPress;
34
35 strict private FEventActionKeyRelease: TSFInt32Event;
36 { }
37 public property EventActionKeyRelease: TSFInt32Event read FEventActionKeyRelease;
38
39 strict private FEventAltKey: TSFBoolEvent;
40 { }
41 public property EventAltKey: TSFBoolEvent read FEventAltKey;
42
43 strict private FEventControlKey: TSFBoolEvent;
44 { }
45 public property EventControlKey: TSFBoolEvent read FEventControlKey;
46
47 strict private FEventKeyPress: TSFStringEvent;
48 { }
49 public property EventKeyPress: TSFStringEvent read FEventKeyPress;
50
51 strict private FEventKeyRelease: TSFStringEvent;
52 { }
53 public property EventKeyRelease: TSFStringEvent read FEventKeyRelease;
54
55 strict private FEventShiftKey: TSFBoolEvent;
56 { }
57 public property EventShiftKey: TSFBoolEvent read FEventShiftKey;
58
59 {$endif read_interface}
60
61 {$ifdef read_implementation}
62
63 { TKeySensorNode ----------------------------------------------- }
64
65 class function TKeySensorNode.ClassX3DType: String;
66 begin
67 Result := 'KeySensor';
68 end;
69
70 procedure TKeySensorNode.CreateNode;
71 begin
72 inherited;
73
74 FEventActionKeyPress := TSFInt32Event.Create(Self, 'actionKeyPress', false);
75 AddEvent(FEventActionKeyPress);
76
77 FEventActionKeyRelease := TSFInt32Event.Create(Self, 'actionKeyRelease', false);
78 AddEvent(FEventActionKeyRelease);
79
80 FEventAltKey := TSFBoolEvent.Create(Self, 'altKey', false);
81 AddEvent(FEventAltKey);
82
83 FEventControlKey := TSFBoolEvent.Create(Self, 'controlKey', false);
84 AddEvent(FEventControlKey);
85
86 FEventKeyPress := TSFStringEvent.Create(Self, 'keyPress', false);
87 AddEvent(FEventKeyPress);
88
89 FEventKeyRelease := TSFStringEvent.Create(Self, 'keyRelease', false);
90 AddEvent(FEventKeyRelease);
91
92 FEventShiftKey := TSFBoolEvent.Create(Self, 'shiftKey', false);
93 AddEvent(FEventShiftKey);
94 end;
95
96 {$endif read_implementation}