Skip to content

Commit d42c3d6

Browse files
authored
Update README.md
1 parent 7cea842 commit d42c3d6

File tree

1 file changed

+25
-22
lines changed

1 file changed

+25
-22
lines changed

README.md

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -24,35 +24,39 @@ Greetings ! gmcl_TrackIR is a ClientSide Windows module providing a simple inter
2424

2525
![](http://puu.sh/gvJ2u/5004204308.png)
2626

27+
All functions are stored in the TrackIR table after the module got executed
2728

2829

29-
*Functions returning coordinates :*
30-
TrackIR_X ; TrackIR_Y ; TrackIR_Z ; TrackIR_Pitch ; TrackIR_Yaw ; TrackIR_Roll
30+
This way :
3131

32-
*Functions returning debug informations :*
33-
TrackIR_Debug -> Returning debug infos , if everything is working it will return raw vars formatted , else a message.
3432

35-
*Functions returning informations :*
36-
TrackIR_Ver (Not really tested)
33+
```txt
34+
] lua_run_cl PrintTable(TrackIR)
35+
[...]
36+
Update = function: 0x0219b60ac978
37+
get_Debug = function: 0x0219b60ac9b0
38+
get_Pitch = function: 0x0219b60ac6f8
39+
get_Roll = function: 0x0219b60ac7a0
40+
get_Status = function: 0x0219b60ac878
41+
get_Ver = function: 0x0219b60ac940
42+
get_X = function: 0x0219b60ac730
43+
get_Y = function: 0x0219b60ac840
44+
get_Yaw = function: 0x0219b60ac768
45+
get_Z = function: 0x0219b60ac7d8
3746
38-
*Functions returning .... nothing :*
39-
TrackIR_Update (Request an update for all the coordinates, run it every time you wanna update the view, you better make what i did in the example)
47+
```
4048

41-
Like this :
49+
*Functions returning coordinates :*
50+
TrackIR.get_X; TrackIR.get_Y; TrackIR.get_Z; TrackIR.get_Pitch; TrackIR.get_Yaw; TrackIR.get_Roll;
4251

52+
*Functions returning debug informations :*
53+
TrackIR.get_Debug -> Returning debug infos , if everything is working it will return raw vars formatted , else a message.
4354

44-
function TrackIR_Timer() -- the best way would be to make it 60/120 times per sec. (i mean, not 60-120, it's 60 OR 120 (depending of the trackir device))
45-
TrackIR_Update()
46-
Var_TrackIR_Debug = TrackIR_Debug()
47-
Var_TrackIR_Pitch = TrackIR_Pitch()
48-
Var_TrackIR_Yaw = TrackIR_Yaw()
49-
Var_TrackIR_Roll= TrackIR_Roll()
50-
Var_TrackIR_X = TrackIR_X()
51-
Var_TrackIR_Y = TrackIR_Y()
52-
Var_TrackIR_Z = TrackIR_Z()
53-
end
55+
*Functions returning informations :*
56+
TrackIR.get_Ver (Not really tested)
5457

55-
hook.Add("Think", "trackir timer", TrackIR_Timer)
58+
*Functions returning .... nothing :*
59+
TrackIR.Update (Request an update for all the coordinates, run it every time you wanna update the view, you better make what i did in the example)
5660

5761

5862

@@ -80,10 +84,9 @@ TrackIR Software
8084

8185
Windows (I'll see later for OSX and linux support, i need to contact NaturalPoint about that)
8286

83-
https://s3.amazonaws.com/esharesearch-webinstaller/prerequisites/vc120/vcredist_x86.exe
8487

8588

86-
**Copyright (c) 2006-2015 NaturalPoint Inc. All Rights Reserved**
89+
**Copyright (c) 2006-2019 NaturalPoint Inc. All Rights Reserved**
8790

8891

8992

0 commit comments

Comments
 (0)