MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / UserActionDesc

Method UserActionDesc

engine/Poseidon/Input/UserActionDesc.cpp:8–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6{
7
8UserActionDesc::UserActionDesc(const char* n, int& d, int first, ...) : desc(d)
9{
10 name = n;
11 axis = false;
12
13 keys.Resize(0);
14 va_list arglist;
15 va_start(arglist, first);
16 int key = first;
17 while (key != -1)
18 {
19 keys.Add(key);
20 key = va_arg(arglist, int);
21 }
22 va_end(arglist);
23 keys.Compact();
24}
25
26UserActionDesc::UserActionDesc(bool a, const char* n, int& d, int first, ...) : desc(d)
27{

Callers

nothing calls this directly

Calls 3

ResizeMethod · 0.45
AddMethod · 0.45
CompactMethod · 0.45

Tested by

no test coverage detected