Browse Source

EsthetiqueAppli

Pauline Berta 4 years ago
parent
commit
deb73c917e
54 changed files with 11415 additions and 149 deletions
  1. BIN
      bin/Application1/Fenetre$1.class
  2. BIN
      bin/Application1/Fenetre$2.class
  3. BIN
      bin/Application1/Fenetre$3.class
  4. BIN
      bin/Application1/Fenetre.class
  5. BIN
      bin/Application1/Main.class
  6. BIN
      bin/Application1/TextPanel.class
  7. BIN
      bin/Application1/carte$1.class
  8. BIN
      bin/Application1/carte$2.class
  9. BIN
      bin/Application1/carte$3.class
  10. BIN
      bin/Application1/carte$4.class
  11. BIN
      bin/Application1/carte$5.class
  12. BIN
      bin/Application1/carte$6.class
  13. BIN
      bin/Application1/carte.class
  14. BIN
      bin/External_Software/Glovepie/Bird.dll
  15. BIN
      bin/External_Software/Glovepie/CStereoI.dll
  16. BIN
      bin/External_Software/Glovepie/D3DX81ab.dll
  17. BIN
      bin/External_Software/Glovepie/EMADevice_DLL.DLL
  18. BIN
      bin/External_Software/Glovepie/GlovePIE.exe
  19. 28
    0
      bin/External_Software/Glovepie/GlovePIE.exe.manifest
  20. 6
    0
      bin/External_Software/Glovepie/GlovePIE.ini
  21. BIN
      bin/External_Software/Glovepie/GlovePIE_Bird_5DT.exe
  22. 28
    0
      bin/External_Software/Glovepie/GlovePIE_Bird_5DT.exe.manifest
  23. BIN
      bin/External_Software/Glovepie/HAT3DIPC.dll
  24. 188
    0
      bin/External_Software/Glovepie/MouseScripts/MouseParty.pie
  25. BIN
      bin/External_Software/Glovepie/NPClient.dll
  26. 559
    0
      bin/External_Software/Glovepie/PIE.html
  27. BIN
      bin/External_Software/Glovepie/PPT.dll
  28. BIN
      bin/External_Software/Glovepie/RPPM3Csafe.dll
  29. BIN
      bin/External_Software/Glovepie/RPPM3DDI.dll
  30. BIN
      bin/External_Software/Glovepie/RPPM3USB.dll
  31. 21
    0
      bin/External_Software/Glovepie/SixaxisScripts/LegoIndianaJonesSIXAXIS.PIE
  32. 29
    0
      bin/External_Software/Glovepie/VoiceScripts/MouseVoiceCommands.pie
  33. 25
    0
      bin/External_Software/Glovepie/WiimoteScripts/LegoIndianaJonesWiimoteNunchuk.PIE
  34. 13
    0
      bin/External_Software/Glovepie/WiimoteScripts/WiimoteScript.PIE
  35. 66
    0
      bin/External_Software/Glovepie/WiimoteScripts/lednerg WiiMotion Plus Mouse.PIE
  36. 8267
    0
      bin/External_Software/Glovepie/documentation.rtf
  37. BIN
      bin/External_Software/Glovepie/edk.dll
  38. BIN
      bin/External_Software/Glovepie/edk_utils.dll
  39. BIN
      bin/External_Software/Glovepie/fglove.dll
  40. BIN
      bin/External_Software/Glovepie/p5dll.dll
  41. 67
    0
      bin/External_Software/Glovepie/pielog.txt
  42. 1933
    0
      bin/External_Software/Glovepie/readme.txt
  43. BIN
      bin/External_Software/Glovepie/thinkgear.dll
  44. BIN
      bin/External_Software/TGsetup.exe
  45. BIN
      bin/Images/Install_Wiimote/1.PNG
  46. BIN
      bin/Images/Install_Wiimote/2.PNG
  47. BIN
      bin/Images/Install_Wiimote/3.PNG
  48. BIN
      bin/Images/Install_Wiimote/4.PNG
  49. BIN
      bin/Images/Install_Wiimote/5.PNG
  50. 24
    50
      src/Application1/Fenetre.java
  51. 1
    1
      src/Application1/ImagePanel.java
  52. 0
    3
      src/Application1/Main.java
  53. 3
    3
      src/Application1/TextPanel.java
  54. 157
    92
      src/Application1/carte.java

BIN
bin/Application1/Fenetre$1.class View File


BIN
bin/Application1/Fenetre$2.class View File


BIN
bin/Application1/Fenetre$3.class View File


BIN
bin/Application1/Fenetre.class View File


BIN
bin/Application1/Main.class View File


BIN
bin/Application1/TextPanel.class View File


BIN
bin/Application1/carte$1.class View File


BIN
bin/Application1/carte$2.class View File


BIN
bin/Application1/carte$3.class View File


BIN
bin/Application1/carte$4.class View File


BIN
bin/Application1/carte$5.class View File


BIN
bin/Application1/carte$6.class View File


BIN
bin/Application1/carte.class View File


BIN
bin/External_Software/Glovepie/Bird.dll View File


BIN
bin/External_Software/Glovepie/CStereoI.dll View File


BIN
bin/External_Software/Glovepie/D3DX81ab.dll View File


BIN
bin/External_Software/Glovepie/EMADevice_DLL.DLL View File


BIN
bin/External_Software/Glovepie/GlovePIE.exe View File


+ 28
- 0
bin/External_Software/Glovepie/GlovePIE.exe.manifest View File

@@ -0,0 +1,28 @@
1
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
+<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
3
+  <assemblyIdentity
4
+    type="win32"
5
+    name="CodeGear RAD Studio"
6
+    version="11.0.2627.5503" 
7
+    processorArchitecture="*"/>
8
+  <dependency>
9
+    <dependentAssembly>
10
+      <assemblyIdentity
11
+        type="win32"
12
+        name="Microsoft.Windows.Common-Controls"
13
+        version="6.0.0.0"
14
+        publicKeyToken="6595b64144ccf1df"
15
+        language="*"
16
+        processorArchitecture="*"/>
17
+    </dependentAssembly>
18
+  </dependency>
19
+  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
20
+    <security>
21
+      <requestedPrivileges>
22
+        <requestedExecutionLevel
23
+          level="requireAdministrator"
24
+          uiAccess="false"/>
25
+        </requestedPrivileges>
26
+    </security>
27
+  </trustInfo>
28
+</assembly>

+ 6
- 0
bin/External_Software/Glovepie/GlovePIE.ini View File

@@ -0,0 +1,6 @@
1
+[EditorForm]
2
+FormVersion=0
3
+
4
+[EditorForm\TEditorForm.FileRecentManager]
5
+Item_0=C:\Users\nunes\Desktop\Travail\PIR\Software\Glovepie\WiimoteScripts\Test.PIE
6
+

BIN
bin/External_Software/Glovepie/GlovePIE_Bird_5DT.exe View File


+ 28
- 0
bin/External_Software/Glovepie/GlovePIE_Bird_5DT.exe.manifest View File

@@ -0,0 +1,28 @@
1
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
+<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
3
+  <assemblyIdentity
4
+    type="win32"
5
+    name="CodeGear RAD Studio"
6
+    version="11.0.2627.5503" 
7
+    processorArchitecture="*"/>
8
+  <dependency>
9
+    <dependentAssembly>
10
+      <assemblyIdentity
11
+        type="win32"
12
+        name="Microsoft.Windows.Common-Controls"
13
+        version="6.0.0.0"
14
+        publicKeyToken="6595b64144ccf1df"
15
+        language="*"
16
+        processorArchitecture="*"/>
17
+    </dependentAssembly>
18
+  </dependency>
19
+  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
20
+    <security>
21
+      <requestedPrivileges>
22
+        <requestedExecutionLevel
23
+          level="requireAdministrator"
24
+          uiAccess="false"/>
25
+        </requestedPrivileges>
26
+    </security>
27
+  </trustInfo>
28
+</assembly>

BIN
bin/External_Software/Glovepie/HAT3DIPC.dll View File


+ 188
- 0
bin/External_Software/Glovepie/MouseScripts/MouseParty.pie View File

@@ -0,0 +1,188 @@
1
+// Click the RUN Button above -^ to start,
2
+// The mice must be plugged in before pressing RUN.
3
+
4
+// Don't click the title bar of THIS window with the REAL mouse or it
5
+// will freeze! This includes when it is minimized to the desktop.
6
+// You can click title bars of other windows with the real mouse, and
7
+// you can click this window's title bar with any fake mouse.
8
+// If it freezes, use Alt+Tab to fix it.
9
+
10
+// The mice will move slowly over GlovePIE's window because of the
11
+// syntax highlighter. Minimise GlovePIE to see it properly.
12
+
13
+// This script has mouse 1 controlling the real mouse pointer, and up
14
+// to 3 other mice controlling fake mouse pointers. The fake mouse
15
+// pointers will have a coloured number next to them.
16
+
17
+// All mouse pointers start in the same spot as the original cursor
18
+// until you move them.
19
+
20
+if starting then
21
+  cursor2.visible = false
22
+  cursor3.visible = false
23
+  cursor4.visible = false
24
+endif
25
+
26
+// The real cursor is now only controlled by mouse 1
27
+mouse.Swallow = true
28
+fakemouse.DirectInputX = mouse1.DirectInputX
29
+fakemouse.DirectInputY = mouse1.DirectInputY
30
+mouse.LeftButton = mouse1.LeftButton
31
+mouse.RightButton = mouse1.RightButton
32
+mouse.MiddleButton = mouse1.MiddleButton
33
+mouse.XButton1 = mouse1.XButton1
34
+mouse.XButton2 = mouse1.XButton2
35
+
36
+// Show a fake cursor 2
37
+if mouse2.present but not var.shown2 then
38
+  cursor2.visible = true
39
+  var.Mouse2x = mouse.CursorPosX
40
+  var.Mouse2y = mouse.CursorPosY
41
+  var.shown2 = true
42
+endif
43
+
44
+// Show a fake cursor 3
45
+if mouse3.present but not var.shown3 then
46
+  cursor3.visible = true
47
+  var.Mouse3x = mouse.CursorPosX
48
+  var.Mouse3y = mouse.CursorPosY
49
+  var.shown3 = true
50
+endif
51
+
52
+// Show a fake cursor 4
53
+if mouse4.present but not var.shown4 then
54
+  cursor4.visible = true
55
+  var.Mouse4x = mouse.CursorPosX
56
+  var.Mouse4y = mouse.CursorPosY
57
+  var.shown4 = true
58
+endif
59
+
60
+// Do mouse pointer 2
61
+if mouse2.present then
62
+  // How much has mouse 2 moved?
63
+  var.deltax2 = Delta(mouse2.DirectInputX)
64
+  var.deltay2 = Delta(mouse2.DirectInputY)
65
+
66
+  // Mouse ballistics attempt
67
+  var.velocity = ([(smooth(var.deltaX2) / 24ms) in inches per second, (smooth(var.deltaY2) / 24ms) in inches per second] )
68
+  var.speed = |var.velocity|
69
+  if var.speed <= 0.2 then
70
+    var.deltax2 = var.deltax2 * 2
71
+    var.deltay2 = var.deltay2 * 2
72
+  endif
73
+  if var.speed > 0.2 and var.speed <= 0.4 then
74
+    var.deltax2 = var.deltax2 * 4
75
+    var.deltay2 = var.deltay2 * 4
76
+  endif
77
+  if var.speed > 0.4 and var.speed <= 1.25 then
78
+    var.deltax2 = var.deltax2 * 7
79
+    var.deltay2 = var.deltay2 * 7
80
+  endif
81
+  if var.speed > 1.25 and var.speed <= 3.9 then
82
+    var.deltax2 = var.deltax2 *12 //* 7
83
+    var.deltay2 = var.deltay2 *12 //* 7
84
+  endif
85
+  if var.speed > 3.9 then
86
+    var.deltax2 = var.deltax2 * 20// * 13.77
87
+    var.deltay2 = var.deltay2 * 20// * 13.77
88
+  endif
89
+  var.Mouse2x = var.Mouse2x pixels + (var.deltax2 in pixels)
90
+  var.Mouse2y = var.Mouse2y pixels + (var.deltay2 in pixels)
91
+  if var.Mouse2x < screen.DesktopLeft then var.Mouse2x = screen.DesktopLeft
92
+  if var.Mouse2x > screen.DesktopRight then var.Mouse2x = screen.DesktopRight
93
+  if var.Mouse2y < screen.DesktopTop then var.Mouse2y = screen.DesktopTop
94
+  if var.Mouse2y > screen.DesktopBottom then var.Mouse2y = screen.DesktopBottom
95
+endif
96
+Cursor2.PosX = var.Mouse2x
97
+Cursor2.PosY = var.Mouse2y
98
+Cursor2.LeftButton = mouse2.LeftButton
99
+Cursor2.RightButton = mouse2.RightButton
100
+Cursor2.MiddleButton = mouse2.MiddleButton
101
+
102
+// Do mouse pointer 3
103
+if mouse3.present then
104
+  // How much has mouse 2 moved?
105
+  var.deltax3 = Delta(mouse3.DirectInputX)
106
+  var.deltay3 = Delta(mouse3.DirectInputY)
107
+
108
+  // Mouse ballistics attempt
109
+  var.velocity = ([(smooth(var.deltaX3) / 24ms) in inches per second, (smooth(var.deltaY3) / 24ms) in inches per second] )
110
+  var.speed = |var.velocity|
111
+  if var.speed <= 0.2 then
112
+    var.deltax3 = var.deltax3 * 2
113
+    var.deltay3 = var.deltay3 * 2
114
+  endif
115
+  if var.speed > 0.2 and var.speed <= 0.4 then
116
+    var.deltax3 = var.deltax3 * 4
117
+    var.deltay3 = var.deltay3 * 4
118
+  endif
119
+  if var.speed > 0.4 and var.speed <= 1.25 then
120
+    var.deltax3 = var.deltax3 * 7
121
+    var.deltay3 = var.deltay3 * 7
122
+  endif
123
+  if var.speed > 1.25 and var.speed <= 3.9 then
124
+    var.deltax3 = var.deltax3 *12 //* 7
125
+    var.deltay3 = var.deltay3 *12 //* 7
126
+  endif
127
+  if var.speed > 3.9 then
128
+    var.deltax3 = var.deltax3 * 20// * 13.77
129
+    var.deltay3 = var.deltay3 * 20// * 13.77
130
+  endif
131
+  var.Mouse3x = var.Mouse3x pixels + (var.deltax3 in pixels)
132
+  var.Mouse3y = var.Mouse3y pixels + (var.deltay3 in pixels)
133
+  if var.Mouse3x < screen.DesktopLeft then var.Mouse3x = screen.DesktopLeft
134
+  if var.Mouse3x > screen.DesktopRight then var.Mouse3x = screen.DesktopRight
135
+  if var.Mouse3y < screen.DesktopTop then var.Mouse3y = screen.DesktopTop
136
+  if var.Mouse3y > screen.DesktopBottom then var.Mouse3y = screen.DesktopBottom
137
+endif
138
+Cursor3.PosX = var.Mouse3x
139
+Cursor3.PosY = var.Mouse3y
140
+Cursor3.LeftButton = mouse3.LeftButton
141
+Cursor3.RightButton = mouse3.RightButton
142
+Cursor3.MiddleButton = mouse3.MiddleButton
143
+
144
+// Do mouse pointer 4
145
+if mouse4.present then
146
+  // How much has mouse 2 moved?
147
+  var.deltax4 = Delta(mouse4.DirectInputX)
148
+  var.deltay4 = Delta(mouse4.DirectInputY)
149
+
150
+  // Mouse ballistics attempt
151
+  var.velocity = ([(smooth(var.deltaX4) / 24ms) in inches per second, (smooth(var.deltaY4) / 24ms) in inches per second] )
152
+  var.speed = |var.velocity|
153
+  if var.speed <= 0.2 then
154
+    var.deltax4 = var.deltax4 * 2
155
+    var.deltay4 = var.deltay4 * 2
156
+  endif
157
+  if var.speed > 0.2 and var.speed <= 0.4 then
158
+    var.deltax4 = var.deltax4 * 4
159
+    var.deltay4 = var.deltay4 * 4
160
+  endif
161
+  if var.speed > 0.4 and var.speed <= 1.25 then
162
+    var.deltax4 = var.deltax4 * 7
163
+    var.deltay4 = var.deltay4 * 7
164
+  endif
165
+  if var.speed > 1.25 and var.speed <= 3.9 then
166
+    var.deltax4 = var.deltax4 *12 //* 7
167
+    var.deltay4 = var.deltay4 *12 //* 7
168
+  endif
169
+  if var.speed > 3.9 then
170
+    var.deltax4 = var.deltax4 * 20// * 13.77
171
+    var.deltay4 = var.deltay4 * 20// * 13.77
172
+  endif
173
+  var.Mouse4x = var.Mouse4x pixels + (var.deltax4 in pixels)
174
+  var.Mouse4y = var.Mouse4y pixels + (var.deltay4 in pixels)
175
+  if var.Mouse4x < screen.DesktopLeft then var.Mouse4x = screen.DesktopLeft
176
+  if var.Mouse4x > screen.DesktopRight then var.Mouse4x = screen.DesktopRight
177
+  if var.Mouse4y < screen.DesktopTop then var.Mouse4y = screen.DesktopTop
178
+  if var.Mouse4y > screen.DesktopBottom then var.Mouse4y = screen.DesktopBottom
179
+endif
180
+Cursor4.PosX = var.Mouse4x
181
+Cursor4.PosY = var.Mouse4y
182
+Cursor4.LeftButton = mouse4.LeftButton
183
+Cursor4.RightButton = mouse4.RightButton
184
+Cursor4.MiddleButton = mouse4.MiddleButton
185
+
186
+
187
+
188
+

BIN
bin/External_Software/Glovepie/NPClient.dll View File


+ 559
- 0
bin/External_Software/Glovepie/PIE.html View File

@@ -0,0 +1,559 @@
1
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+<html>
3
+<head>
4
+  <title>Programmable Input Emulator 0.41</title>
5
+                    
6
+  <meta http-equiv="content-type"
7
+ content="text/html; charset=ISO-8859-1">
8
+           
9
+  <meta name="author" content="Carl Kenner">
10
+</head>
11
+  <body>
12
+     
13
+<h1>Programmable Input Emulator 0.41 Introduction</h1>
14
+   <br>
15
+
16
+(Don't forget to also read the Documentation.rtf file)<p>
17
+   The GlovePIE Programmable Input Emulator (previously known as PIE) emulates input devices 
18
+by using other input devices.<br>
19
+   This means you can use the joystick in a keyboard only game (eg. DOOM3)
20
+ or the keyboard in a joystick only game (eg. Return Of The King Co-op mode). 
21
+ Or you can control any game with a virtual reality glove. Or you can create 
22
+ macros to do complex moves at the touch of a button (eg. Mortal Kombat). 
23
+Or you can play musical instruments from your PC.<br>
24
+   <br>
25
+   This is still a beta version, so it will be buggy and incomplete.<br>
26
+     
27
+<h2>You can emulate:</h2>
28
+     
29
+<ul>
30
+     <li>the mouse</li>
31
+     <li>the keyboard (on windows 2000 and XP)</li>
32
+     <li>Multiple joysticks or gamepads (if you download and install PPJoy)</li>
33
+     <li>Multiple MIDI devices (if you download and install Midi Yoke or
34
+Hubi's  loopback driver)</li>
35
+     <li>Microphone input (in theory)</li>
36
+     
37
+</ul>
38
+   <br>
39
+     
40
+<h2>You can get input from:</h2>
41
+     
42
+<ul>
43
+     <li>multiple mice</li>
44
+     <li>multiple keyboards</li>
45
+     <li>multiple joysticks or gamepads</li>
46
+     <li>Multiple Essential Reality P5 virtual reality gloves</li>
47
+     <li>multiple MIDI devices</li>
48
+     <li>a microphone</li>
49
+     
50
+</ul>
51
+   <br>
52
+     
53
+<h2>Requirements:</h2>
54
+     
55
+<ul>
56
+     <li>DirectX 8 or higher</li>
57
+     <li>PPJoy if you want to use virtual joysticks</li>
58
+     <li>Midi Yoke if you want to emulate MIDI
59
+input</li>
60
+     <li>Windows 2000 or above if you want to emulate the keyboard</li>
61
+     <li>SAPI 5.0 (Comes with Windows XP and Office XP) or SAPI 5.1 if you
62
+ want speech synthesis and recognition</li>
63
+     
64
+</ul>
65
+   I highly recommend buying an Essential Reality P5 virtual reality glove. 
66
+ They are very cheap. You can do wonderous 
67
+things with a virtual reality glove and PIE! Actually you should buy two since
68
+they are cheap and you save on shipping if you buy both at once.<br>
69
+   <br>
70
+     
71
+<h2>Installing:</h2>
72
+   <br>
73
+   Just extract the ZIP file into whatever folder you want. &nbsp;There is
74
+ no installation program.<br>
75
+   You will also need to download and install PPJoy and Midi Yoke if you
76
+want  to use them. After you install PPJoy you need to create at least one
77
+virtual  joystick.<br>
78
+   You should associate .PIE files with GlovePIE in windows, so you can just click 
79
+ on PIE scripts and open them in GlovePIE.<br>
80
+   <br>
81
+     
82
+<h2>Uninstalling:</h2>
83
+   Just delete the folder you installed GlovePIE into.<br>
84
+   You may also want to remove or change the association for .PIE files.<br>
85
+   <br>
86
+     
87
+<h2>Running:</h2>
88
+   You can start GlovePIE by double clicking on its icon in windows explorer,
89
+or  by double clicking on a .PIE file if you have set up the associations.
90
+You  can also start it from a command prompt (aka DOS window), or create
91
+a shortcut  to it on your desktop, quick-launch bar, or start menu. <br>
92
+   <br>
93
+   By default, when PIE starts it displays an empty script window. You can
94
+ write a new PIE script there, or you can load an existing file from the
95
+file  menu. But it will not actually do anything until you choose "Run" from
96
+the  "Run!" menu. Then it will check your script for errors and run it. If
97
+there  are any errors it will just ignore those lines. When you have finished
98
+playing  you can choose "Stop" from the "Run!" menu. PIE will not emulate
99
+anything  unless it is running. Exiting PIE by closing its window will stop
100
+all emulation.  You can also just check your program for errors without running
101
+it by choosing  "Check for errors" from the "Run" menu. If there are any
102
+errors a box will  pop up at the bottom of the window with a list of errors
103
+and line numbers.  If nothing appears then there are no errors. You can tell
104
+when your script  is running because the title bar at the top of the window
105
+will change.<br>
106
+   <br>
107
+   If you run PIE from the command prompt or a shortcut then you can specify 
108
+ command line parameters. You must use quotation marks around any parameter 
109
+ which includes a space.<br>
110
+     
111
+<table cellpadding="2" cellspacing="2" border="1" width="60%">
112
+     <tbody>
113
+       <tr>
114
+         <td valign="top"><i>filename.PIE</i><br>
115
+         </td>
116
+         <td valign="top">The name of a PIE script to open. You may or may
117
+ not include the .PIE extension. The script will not do anything until you
118
+ choose "Run" from the "Run!" menu.<br>
119
+         </td>
120
+       </tr>
121
+       <tr>
122
+         <td valign="top">                     
123
+      <pre>-<i>filename.PIE</i></pre>
124
+         </td>
125
+         <td valign="top">The name of a PIE script to open and run. You may 
126
+ or may not include the .PIE extension. It will start running automatically<br>
127
+         </td>
128
+       </tr>
129
+       <tr>
130
+         <td valign="top">                     
131
+      <pre>/r:<i>filename.EXE</i></pre>
132
+         </td>
133
+         <td valign="top">The name of a .EXE file or other program to start 
134
+ running automatically when PIE starts. This allows you to start the game 
135
+and PIE at the same time.<br>
136
+         </td>
137
+       </tr>
138
+           
139
+  </tbody>   
140
+</table>
141
+   <br>
142
+   <br>
143
+     
144
+<h2>Menus:</h2>
145
+   PIE has the following menus:<br>
146
+   <br>
147
+     
148
+<table cellpadding="2" cellspacing="2" border="1" width="100%">
149
+     <tbody>
150
+       <tr>
151
+         <td valign="top">File<br>
152
+         </td>
153
+         <td valign="top"><br>
154
+         </td>
155
+         <td valign="top">Standard file menu. Except the only way to save 
156
+files  is by choosing "Save As..."<br>
157
+         </td>
158
+       </tr>
159
+       <tr>
160
+         <td valign="top">File<br>
161
+         </td>
162
+         <td valign="top">New<br>
163
+         </td>
164
+         <td valign="top">Clears the script window. You will lose your work 
165
+ if you haven't saved it.<br>
166
+         </td>
167
+       </tr>
168
+       <tr>
169
+         <td valign="top">File<br>
170
+         </td>
171
+         <td valign="top">Open...<br>
172
+         </td>
173
+         <td valign="top">Load a PIE script file. This will not start it
174
+running  until you choose "Run" from the "Run!" menu. <br>
175
+   You will lose your work if you haven't saved it.<br>
176
+         </td>
177
+       </tr>
178
+       <tr>
179
+         <td valign="top">File<br>
180
+         </td>
181
+         <td valign="top">Save As...<br>
182
+         </td>
183
+         <td valign="top">The only way to save a file. If you don't use this 
184
+ you will lose your work! <br>
185
+   You need to choose the filename every time. Sorry.<br>
186
+         </td>
187
+       </tr>
188
+       <tr>
189
+         <td valign="top">File<br>
190
+         </td>
191
+         <td valign="top">Exit<br>
192
+         </td>
193
+         <td valign="top">Quit PIE and stop emulating anything. Please save 
194
+ your work before you choose this. <br>
195
+   It will NOT ask you whether you want to save.<br>
196
+         </td>
197
+       </tr>
198
+       <tr>
199
+         <td valign="top">Edit<br>
200
+         </td>
201
+         <td valign="top"><br>
202
+         </td>
203
+         <td valign="top">Standard edit commands<br>
204
+         </td>
205
+       </tr>
206
+       <tr>
207
+         <td valign="top">Run!<br>
208
+         </td>
209
+         <td valign="top"><br>
210
+         </td>
211
+         <td valign="top">The Run menu is for running and checking your script. 
212
+ It won't emulate anything unless it is running.<br>
213
+         </td>
214
+       </tr>
215
+       <tr>
216
+         <td valign="top">Run!<br>
217
+         </td>
218
+         <td valign="top">Check for errors<br>
219
+         </td>
220
+         <td valign="top">Check the script for errors. This was called "Compile" 
221
+ in the previous version. <br>
222
+   Only use this while your program is not running.<br>
223
+   A box will pop up at the bottom of the window if there are any errors. 
224
+Errors  will also be highlighted in red.<br>
225
+   You can single-click on an error in the box to go to that line.<br>
226
+         </td>
227
+       </tr>
228
+       <tr>
229
+         <td valign="top">Run!<br>
230
+         </td>
231
+         <td valign="top">Run<br>
232
+         </td>
233
+         <td valign="top">Start your script going. This starts the actual 
234
+emulation  process. <br>
235
+   Basically it will just loop through your script about 40 times per second.<br>
236
+   If there are any errors they will be highlighted and included in the error 
237
+ box, but the script will still run and just ignore those lines.<br>
238
+   The script will keep running until you chose "Stop" from the "Run!" menu, 
239
+ or try to close the PIE window.<br>
240
+   While running, your script may move the cursor around or press keys which 
241
+ may do bad things to the PIE window if it is in the foreground.<br>
242
+   I recommend starting notepad and placing it in the foreground while you
243
+ are running a script that presses keys.<br>
244
+         </td>
245
+       </tr>
246
+       <tr>
247
+         <td valign="top">Run!<br>
248
+         </td>
249
+         <td valign="top">Stop<br>
250
+         </td>
251
+         <td valign="top">Stops your script running. You should do this before 
252
+ you check for errors or run your program again. <br>
253
+   You don't need to do this before closing the window, that will stop it 
254
+automatically.<br>
255
+         </td>
256
+       </tr>
257
+       <tr>
258
+         <td valign="top">Settings<br>
259
+         </td>
260
+         <td valign="top"><br>
261
+         </td>
262
+         <td valign="top">Turns the P5 gloves' mouse mode off, or brings
263
+up  Control Panel applets for the various input devices PIE uses.<br>
264
+         </td>
265
+       </tr>
266
+       <tr>
267
+         <td valign="top">Settings<br>
268
+         </td>
269
+         <td valign="top">Turn P5 Mouse Mode Off<br>
270
+         </td>
271
+         <td valign="top">If you have any P5 virtual reality gloves connected, 
272
+ this will switch off mouse mode for all of them. <br>
273
+   Don't do this while your script is running or the P5 will no longer work 
274
+ with it.<br>
275
+         </td>
276
+       </tr>
277
+       <tr>
278
+         <td valign="top">Settings<br>
279
+         </td>
280
+         <td valign="top">Control Panel<br>
281
+         </td>
282
+         <td valign="top">Starts control panel<br>
283
+         </td>
284
+       </tr>
285
+       <tr>
286
+         <td valign="top">Settings<br>
287
+         </td>
288
+         <td valign="top">P5<br>
289
+         </td>
290
+         <td valign="top">This will bring up the P5 control panel (for your 
291
+ virtual reality glove) if it is installed.<br>
292
+   You can calibrate or test your bend sensors, change the mouse mode settings, 
293
+ or test the buttons.<br>
294
+   This is the original Essential Reality version that only supports a single 
295
+ glove. If you want to calibrate or change the settings for multiple gloves, 
296
+ you should download the Dual Mode Driver and use its VBControlPanel instead.<br>
297
+         </td>
298
+       </tr>
299
+       <tr>
300
+         <td valign="top">Settings<br>
301
+         </td>
302
+         <td valign="top">PPJoy<br>
303
+         </td>
304
+         <td valign="top">Brings up the PPJoy control panel, if PPJoy is
305
+installed.  This allows you to add virtual joysticks or set the number of
306
+buttons, axes  and hats the virtual joystick has. You can also chose which
307
+axes or hats correspond to analog0 to analog15, and what buttons or hats
308
+correspond to digital0 to digital31.<br>
309
+         </td>
310
+       </tr>
311
+       <tr>
312
+         <td valign="top">Settings<br>
313
+         </td>
314
+         <td valign="top">Joystick<br>
315
+         </td>
316
+         <td valign="top">Brings up the Game Controllers or Joystick control 
317
+ panel. It allows you to test your virtual joystick. I don't recommend calibrating 
318
+ virtual joysticks.<br>
319
+         </td>
320
+       </tr>
321
+       <tr>
322
+         <td valign="top">Settings<br>
323
+         </td>
324
+         <td valign="top">Mouse<br>
325
+         </td>
326
+         <td valign="top">Brings up the mouse control panel.<br>
327
+         </td>
328
+       </tr>
329
+       <tr>
330
+         <td valign="top">Settings<br>
331
+         </td>
332
+         <td valign="top">Keyboard<br>
333
+         </td>
334
+         <td valign="top">Brings up the keyboard control panel.<br>
335
+         </td>
336
+       </tr>
337
+       <tr>
338
+         <td valign="top">Settings<br>
339
+         </td>
340
+         <td valign="top">MIDI<br>
341
+         </td>
342
+         <td valign="top">Brings up the closest thing to a MIDI control panel. 
343
+ This should allow you to chose which MIDI device you want to use as the default
344
+ output.<br>
345
+         </td>
346
+       </tr>
347
+       <tr>
348
+         <td valign="top">Settings<br>
349
+         </td>
350
+         <td valign="top">Speech<br>
351
+         </td>
352
+         <td valign="top">Tries to bring up the Speech control panel to change 
353
+ the default text to speech voice. This may not work if the SAPI is not installed 
354
+ in the default directory.<br>
355
+         </td>
356
+       </tr>
357
+       <tr>
358
+         <td valign="top">TroubleShooter<br>
359
+         </td>
360
+         <td valign="top"><br>
361
+         </td>
362
+         <td valign="top">This menu allows you to disable features that you 
363
+ don't think are working or are giving you errors. The settings are not saved 
364
+ between sessions. <br>
365
+   It was designed for an error some people got with the joystick, but those 
366
+ error messages no longer appear so it is unnecessary.<br>
367
+         </td>
368
+       </tr>
369
+       <tr>
370
+         <td valign="top">Help<br>
371
+         </td>
372
+         <td valign="top"><br>
373
+         </td>
374
+         <td valign="top">Get help on PIE.<br>
375
+         </td>
376
+       </tr>
377
+           
378
+  </tbody>   
379
+</table>
380
+   <br>
381
+   <br>
382
+     
383
+<h2>Scripting Tutorial:</h2>
384
+     
385
+<h3>Tutorial 1 - easy stuff</h3>
386
+   Lets make a pie script to simulate pressing the W, A, S and D keys when
387
+ you press the arrow keys.<br>
388
+   This will not work on Windows 98.<br>
389
+   <br>
390
+   Start up PIE.<br>
391
+   Choose the "File" Menu, then click "New". This will clear whatever was 
392
+in  the big white box so you can type your own script.<br>
393
+   We want the W key to be controlled by the up key so type this on one line 
394
+ then press Enter:<br>
395
+   <br>
396
+   W = Up<br>
397
+   <br>
398
+   This is a working PIE Script so you can test it by choosing the "Run!" 
399
+menu  and clicking "Run". <br>
400
+   <br>
401
+   Whenever you press the up arrow key (on the cursor pad, not the numeric
402
+ keypad) it will type a "w". Try it out! This will work in any program.<br>
403
+   Note that it will still move the cursor up. The Up arrow key still has 
404
+its  original function, but it emulates a w at the same time. Try holding 
405
+down  shift and pressing Up. It will type a capital W, unless capslock is 
406
+on. Unlike  the real "W" key, holding down the Up arrow will only type a single
407
+"w".<br>
408
+   <br>
409
+   Now chose the "Run!" menu and click "Stop". This will return our keyboard 
410
+ to normal.<br>
411
+   <br>
412
+   Now do the other keys like this:<br>
413
+   <br>
414
+   A = Left<br>
415
+   S = Down<br>
416
+   D = Right<br>
417
+   <br>
418
+   (Don't worry if the S is orange, that is because S is also an abbreviation 
419
+ for seconds).<br>
420
+   <br>
421
+   Save your script as Tutorial1.PIE by chosing the "File" menu then "Save
422
+ As...".<br>
423
+   And run it again. Stop it when you have finished playing.<br>
424
+   <br>
425
+   You can change it to use any keys you want. You can even use keys that 
426
+don't  exist on your keyboard, like the MediaPlay key which is on some multimedia 
427
+ keyboards. If you don't know what a key is called, just guess. It is not 
428
+fussy about the key names. You could have written this and it would still 
429
+work:<br>
430
+   <br>
431
+   W = UpArrow<br>
432
+   A = CursorLeft<br>
433
+   <br>
434
+   If you want to make it clear that it is a key on the keyboard, you can 
435
+type  this:<br>
436
+   <br>
437
+   key.W = key.Up<br>
438
+   <br>
439
+   (When you type the dot it will pop up with a list of keys. If you can't
440
+ get out of this, click somewhere in the PIE window. Then press Control +
441
+Space and the list will pop up again, but this time it should work. If not,
442
+choose the "Troubleshooter" menu and click "Disable Code Completion")<br>
443
+   <br>
444
+   or this:<br>
445
+   <br>
446
+   keyboard.W = keyboard.Up<br>
447
+   <br>
448
+   or even this:<br>
449
+   <br>
450
+   keyboard's W = UpArrow of Keyboard<br>
451
+   <br>
452
+   <br>
453
+     
454
+<h3>Tutorial 2 - emulating a joystick</h3>
455
+   This time we will control a virtual joystick using the keyboard.<br>
456
+   This will only work if you have downloaded and installed PPJoy.<br>
457
+   <br>
458
+   This is not really much harder to do in PIE than the keyboard, but we
459
+have  know how to use PPJoy and the joystick control panel first. So please
460
+be patient.<br>
461
+   <br>
462
+   Start PIE.<br>
463
+   Click File/New.<br>
464
+   <br>
465
+   But before we write our script, we need to make sure PPJoy is set up correctly.<br>
466
+   Chose the "Settings" menu and click "PPJoy".<br>
467
+   If PPJoy is installed it should pop up with a window titled &nbsp;"PPJoy 
468
+ Joystick and Gamepad Configuration Utility".<br>
469
+   There is a big white list box in the middle of the window with the heading 
470
+ "Configured joysticks". One of the items in the list needs to be "Virtual 
471
+ Joystick 1".<br>
472
+   <br>
473
+   If Virtual Joystick 1 is not there, or the box is empty then you need
474
+to  do the following:<br>
475
+     
476
+<ul>
477
+     <li>click the "Add..." button.</li>
478
+     <li>Where it says "Parallel port" choose "Virtual port"</li>
479
+     <li>Where it says "Controller number" choose "Controller 1"</li>
480
+     <li>Click the "Add" button</li>
481
+     <li>Now wait and go through the hardware setup dialog boxes that pop 
482
+up</li>
483
+     <li>Choose the default options in any dialog boxes</li>
484
+     <li>Be patient, it needs to find and install several drivers</li>
485
+     
486
+</ul>
487
+   Regardless of whether it was there before, or you just added it, you should 
488
+ have a "Virtual Joystick 1" in the list box. Select it and choose "Mapping". 
489
+ It will pop up with the dialog box saying "Welcome to the Joystick/Pad mapping 
490
+ wizard". If it doesn't work then you probably weren't patient enough in the
491
+ previous step. Choose "Set a custom mapping for this controller" (which should
492
+ already be selected) and click "Next &gt;".&nbsp; Now you can choose how
493
+many axes, buttons and hats the virtual joystick should have, and which axes
494
+they are. Leave the default settings and click "Next &gt;". Now you can choose
495
+ which analog inputs control which axes. You will notice that analog0 controls
496
+ the x axis (horizontal), and analog1 controls the y axis (vertical). These
497
+ are good defaults so click "Next &gt;". Now you can choose which digital
498
+inputs should control which buttons. Notice digital 0 controls joystick button
499
+1, and digital 1 controls joystick button 2. These are also good defaults
500
+so choose next. Now you can choose which analog or digital inputs control
501
+the imaginary hats on the top of the joystick. One will be controlled by
502
+digitals 16-19 and the other will be controlled by analog 8. These are good
503
+defaults too, so click Next and then Finish.<br>
504
+   <br>
505
+   Click "Done" in the PPJoy control panel and go back to PIE.<br>
506
+   <br>
507
+   We can test the virtual joystick we just made by choosing the "Settings" 
508
+ menu and chosing "Joystick". This will open up the joystick control panel. 
509
+ Choose PPJoy Virtual Joystick 1 and click "Properties". Now it will pop up
510
+ with another dialog box, choose the "Test" tab. This displays all the axes
511
+ and buttons on the virtual joystick. They should all be in the middle.<br>
512
+   <br>
513
+   Now lets make a PIE script to control the virtual joystick. Assuming your 
514
+ screen resolution is 1024 by 768, Type the following:<br>
515
+   <br>
516
+   ppjoy.analog0 = (mouse.cursorposx - 512) / 512<br>
517
+   <br>
518
+   Remember how analog 0 was the x axis in the mapping before? Well it was. 
519
+ <br>
520
+  <br>
521
+  The above line sets the analog 0 value for virtual joystick 1 to a number 
522
+ between -1 and 1 depending on the location of the mouse cursor on the screen.<br>
523
+   <br>
524
+   Now run your script by choosing Run/Run on the menu. Go back to the Joystick 
525
+ control panel's test tab and see how the horizontal position of the cross 
526
+ in the box is controlled by the mouse.<br>
527
+   <br>
528
+   Now let's do the same for the y axis (384 is half the screen height):<br>
529
+   <br>
530
+   ppjoy.analog1 = &nbsp;(mouse.cursorposy - 384) / 384<br>
531
+   <br>
532
+   This works because PIE uses joystick values between -1 and 1. The cursor 
533
+ position is in pixels from 0 to 767. Subtracting 384 gives a value between 
534
+ -384 and 383. Dividing by 384 gives a value between -1 and (almost) 1.<br>
535
+   <br>
536
+   There is an easier way to do the exact same above calculations in PIE:<br>
537
+   <br>
538
+   ppjoy.analog0 = MapRange(mouse.cursorposx, 0,1023, -1,1)<br>
539
+   ppjoy.analog1 = MapRange(mouse.cursorposy, 0,767, -1,1)<br>
540
+   <br>
541
+   Now let's do the buttons:<br>
542
+   <br>
543
+   ppjoy.digital0 = mouse.LeftButton<br>
544
+   ppjoy.digital1 = mouse.RightButton<br>
545
+   ppjoy.digital2 = mouse.MiddleButton<br>
546
+   ppjoy.digital3 = mouse.XButton1<br>
547
+   ppjoy.digital4 = mouse.XButton2<br>
548
+   <br>
549
+   Now run your script and test it in the joystick control panel or a game. 
550
+ You should be able to control the joystick with the mouse.<br>
551
+   <br>
552
+   If you wanted to control virtual joystick 2, you would just change ppjoy
553
+ to ppjoy2.<br>
554
+  eg. ppjoy2.digital0 = mouse.LeftButton<br>
555
+  <br>
556
+  <br>
557
+ 
558
+</body>
559
+</html>

BIN
bin/External_Software/Glovepie/PPT.dll View File


BIN
bin/External_Software/Glovepie/RPPM3Csafe.dll View File


BIN
bin/External_Software/Glovepie/RPPM3DDI.dll View File


BIN
bin/External_Software/Glovepie/RPPM3USB.dll View File


+ 21
- 0
bin/External_Software/Glovepie/SixaxisScripts/LegoIndianaJonesSIXAXIS.PIE View File

@@ -0,0 +1,21 @@
1
+// Lego Indiana Jones, SIXAXIS, by Carl Kenner
2
+WASD = sixaxis1.LeftStick + sixaxis1.DPad
3
+Enter = sixaxis1.Start
4
+Esc = sixaxis1.Select
5
+U = sixaxis1.cross
6
+H = sixaxis1.square or sixaxis1.Stabbing
7
+J = sixaxis1.circle or sixaxis1.SwingVertical
8
+K = sixaxis1.triangle
9
+Space = sixaxis1.R1
10
+LCtrl = sixaxis1.L1
11
+
12
+ArrowKeys = sixaxis2.LeftStick + sixaxis2.DPad
13
+NumpadEnter = sixaxis2.Start
14
+F2 = sixaxis2.Select
15
+Numpad5 = sixaxis2.cross
16
+Numpad1 = sixaxis2.square or sixaxis2.Stabbing
17
+Numpad2 = sixaxis2.circle or sixaxis2.SwingVertical
18
+Numpad3 = sixaxis2.triangle
19
+NumPad0 = sixaxis2.R1
20
+RCtrl = sixaxis2.L1
21
+

+ 29
- 0
bin/External_Software/Glovepie/VoiceScripts/MouseVoiceCommands.pie View File

@@ -0,0 +1,29 @@
1
+if said("stop") then
2
+  var.speed = [0, 0]
3
+end if
4
+
5
+if said("slow") then
6
+  var.speed = var.speed / 2
7
+end if
8
+
9
+if said("fast") then
10
+  var.speed = var.speed * 2
11
+end if
12
+
13
+if said("left") then
14
+  var.speed = [-3, 0]
15
+end if
16
+
17
+if said("right") then
18
+  var.speed = [3, 0]
19
+end if
20
+
21
+if said("up") then
22
+  var.speed = [0, -2]
23
+end if
24
+
25
+if said("down") then
26
+  var.speed = [0, 2]
27
+end if
28
+
29
+mouse.DirectInput2D += var.speed

+ 25
- 0
bin/External_Software/Glovepie/WiimoteScripts/LegoIndianaJonesWiimoteNunchuk.PIE View File

@@ -0,0 +1,25 @@
1
+// Lego Indiana Jones, Wiimote+Nunchuk, by Carl Kenner
2
+WASD = nunchuk1.Joy + Wiimote1.DPad
3
+Enter = Wiimote1.Plus
4
+Esc = Wiimote1.Minus
5
+U = Wiimote1.A
6
+H = Wiimote1.B or Wiimote1.Stabbing or Nunchuk1.Stabbing
7
+J = Nunchuk1.Z or Wiimote1.SwingVertical
8
+K = nunchuk1.C
9
+Space = Wiimote1.One
10
+LCtrl = Wiimote1.Two
11
+
12
+H = (Nunchuk1.Shake) and (not Nunchuk1.Z)
13
+
14
+ArrowKeys = nunchuk2.Joy + Wiimote2.DPad
15
+NumpadEnter = Wiimote2.Plus
16
+F2 = Wiimote2.Minus
17
+Numpad5 = Wiimote2.A
18
+Numpad1 = Wiimote2.B or Wiimote2.Stabbing or Nunchuk2.Stabbing
19
+Numpad2 = nunchuk2.Z or Wiimote2.SwingVertical
20
+Numpad3 = nunchuk2.C
21
+NumPad0 = Wiimote2.One
22
+RCtrl = Wiimote2.Two
23
+
24
+Numpad1 = (Nunchuk2.Shake) and (not Nunchuk2.Z)
25
+

+ 13
- 0
bin/External_Software/Glovepie/WiimoteScripts/WiimoteScript.PIE View File

@@ -0,0 +1,13 @@
1
+var.ButtonFreezeTime = 250ms
2
+var.PointerBump = KeepDown(Pressed(wiimote.A),var.ButtonFreezeTime) or KeepDown(Pressed(wiimote.B),var.ButtonFreezeTime)
3
+Wiimote.Led1 = true
4
+
5
+var.MoveButton = wiimote.B
6
+mouse.LeftButton = wiimote.A
7
+mouse.RightButton = wiimote.Plus
8
+mouse.MiddleButton = wiimote.Down
9
+
10
+if wiimote.PointerVisible but not var.PointerBump then
11
+mouse.x = wiimote.PointerX
12
+mouse.y = wiimote.PointerY
13
+end if

+ 66
- 0
bin/External_Software/Glovepie/WiimoteScripts/lednerg WiiMotion Plus Mouse.PIE View File

@@ -0,0 +1,66 @@
1
+/*
2
+    WiiMotion Plus Mouse                                  v 2010.01.14
3
+    by lednerg
4
+
5
+    Emulates the basic functionality of a Gyration Air Mouse.
6
+    Requires GlovePIE version .42 or higher.
7
+
8
+    Leave the Wiimote on your desk when starting so it can calibrate.
9
+    Hold B to move, A = Left-Click, + = Right-Click, Down = Middle-Click.
10
+*/
11
+
12
+var.MoveButton = wiimote.B
13
+mouse.LeftButton = wiimote.A
14
+mouse.RightButton = wiimote.Plus
15
+mouse.MiddleButton = wiimote.Down
16
+
17
+var.Speed = 75   // 0 to 100
18
+
19
+PIE.FrameRate = 120hz
20
+if wiimote.HasMotionPlus = false then debug = "WiiMotion Plus NOT DETECTED!"
21
+if wiimote.HasMotionPlus = true and var.MoveButton = true {
22
+   var.YawSpeed = wiimote.MotionPlus.YawSpeed
23
+   var.PitchSpeed = wiimote.MotionPlus.PitchSpeed
24
+   if SameValue( Smooth(wiimote.SmoothRoll, 10), wiimote.SmoothRoll, 10) then var.Roll = Smooth(wiimote.SmoothRoll, 10) else var.Roll = wiimote.SmoothRoll
25
+   if var.Roll < 0 and var.Roll >= -90 {
26
+      var.XYswap = 1 - EnsureMapRange(var.Roll, -90, 0, 0, 1)
27
+      var.RightDown = -1
28
+      var.TopUp = 1
29
+   }
30
+   if var.Roll <= 90 and var.Roll >= 0 {
31
+      var.XYswap = 1 - EnsureMapRange(var.Roll, 90, 0, 0, 1)
32
+      var.RightDown = 1
33
+      var.TopUp = 1
34
+   }
35
+   if var.Roll > 90 and var.Roll <= 180 {
36
+      var.XYswap = 1 - EnsureMapRange(var.Roll, 90, 180, 0, 1)
37
+      var.RightDown = 1
38
+      var.TopUp = -1
39
+   }
40
+   if var.Roll < -90 and var.Roll >= -180 {
41
+      var.XYswap = 1 - EnsureMapRange(var.Roll, -90, -180, 0, 1)
42
+      var.RightDown = -1
43
+      var.TopUp = -1
44
+   }
45
+   var.SpeedX = var.TopUp * var.YawSpeed - ( var.TopUp * var.YawSpeed * var.XYswap ) + ( var.RightDown * var.PitchSpeed * var.XYswap )
46
+   var.SpeedY = var.TopUp * var.PitchSpeed - ( var.TopUp * var.PitchSpeed * var.XYswap) + ( -var.RightDown * var.YawSpeed * var.XYswap )
47
+   mouse.DirectInputX = int(var.MouseX)
48
+   mouse.DirectInputY = int(var.MouseY)
49
+   var.MouseX = var.MouseX + ( var.SpeedX / (10500000 - EnsureMapRange(var.Speed, 0, 100, 0, 10000000) ) )
50
+   var.MouseY = var.MouseY - ( var.SpeedY / (10500000 - EnsureMapRange(var.Speed, 0, 100, 0, 10000000) ) )
51
+/* // for mouse.x and mouse.y instead
52
+   mouse.x = var.MouseX
53
+   mouse.y = var.MouseY
54
+   var.MouseX = var.MouseX + ( var.SpeedX / (20500 - EnsureMapRange(var.Speed, 0, 100, 0, 20000) ) )
55
+   var.MouseY = var.MouseY - ( var.SpeedY / (20500 - EnsureMapRange(var.Speed, 0, 100, 0, 20000) ) )
56
+*/
57
+}
58
+if var.MoveButton = false {
59
+   var.MouseX = mouse.DirectInputX
60
+   var.MouseY = mouse.DirectInputY
61
+/* // for mouse.x and mouse.y instead
62
+   var.MouseX = mouse.x
63
+   var.MouseY = mouse.y
64
+*/
65
+}
66
+

+ 8267
- 0
bin/External_Software/Glovepie/documentation.rtf
File diff suppressed because it is too large
View File


BIN
bin/External_Software/Glovepie/edk.dll View File


BIN
bin/External_Software/Glovepie/edk_utils.dll View File


BIN
bin/External_Software/Glovepie/fglove.dll View File


BIN
bin/External_Software/Glovepie/p5dll.dll View File


+ 67
- 0
bin/External_Software/Glovepie/pielog.txt View File

@@ -0,0 +1,67 @@
1
+(0, 06-mai-2020 10:24:44) Initializing PieLog
2
+(0, 06-mai-2020 10:24:44) Initializing filemode variable
3
+(0, 06-mai-2020 10:24:44) Initializing PieSpeech
4
+(0, 06-mai-2020 10:24:44) Initializing PieVariables
5
+(0, 06-mai-2020 10:24:44) Initializing PieCursorUnit
6
+(0, 06-mai-2020 10:24:44) Initializing PieMouse
7
+(0, 06-mai-2020 10:24:44) Initializing PieKeyboard
8
+(0, 06-mai-2020 10:24:44) Initializing PieInput
9
+(0, 06-mai-2020 10:24:44) Initializing PieOSC
10
+(0, 06-mai-2020 10:24:44) Initializing PiePie
11
+(0, 06-mai-2020 10:24:44) Initializing PieFunction
12
+(0, 06-mai-2020 10:24:44) Initializing PieStatement
13
+(0, 06-mai-2020 10:24:44) Initializing PieExpression
14
+(0, 06-mai-2020 10:24:44) Initializing PieJoystick
15
+(0, 06-mai-2020 10:24:44) Initializing PieP5
16
+(0, 06-mai-2020 10:24:44) Initializing PieMidi
17
+(0, 06-mai-2020 10:24:45) Initializing PiePPJoy
18
+(0, 06-mai-2020 10:24:45) Initializing PieRemote
19
+(0, 06-mai-2020 10:24:45) Initializing Pie Speech Recognition
20
+(0, 06-mai-2020 10:24:45) Initializing PieScreen
21
+(0, 06-mai-2020 10:24:45) GetMonitorEDID
22
+(0, 06-mai-2020 10:24:45) Initializing PieWIndow
23
+(0, 06-mai-2020 10:24:45) Initializing PieCursors
24
+(0, 06-mai-2020 10:24:45) Initializing PieZ800
25
+(0, 06-mai-2020 10:24:45) Initializing PieIntersense
26
+(0, 06-mai-2020 10:24:45) Initializing PieFastrak
27
+(0, 06-mai-2020 10:24:45) Initializing PiePPT
28
+(0, 06-mai-2020 10:24:45) Initializing PieTrackIR
29
+(0, 06-mai-2020 10:24:45) Initializing PiePinch
30
+(0, 06-mai-2020 10:24:45) Starting main
31
+(0, 06-mai-2020 10:24:45) Application object initialized
32
+(0, 06-mai-2020 10:24:45) Creating main window
33
+(0, 06-mai-2020 10:24:48) EditorForm.Create
34
+(0, 06-mai-2020 10:24:51) Checking command line parameters:
35
+(0, 06-mai-2020 10:24:51) Creating debug window
36
+(0, 06-mai-2020 10:24:52) Assigning exception handler
37
+(0, 06-mai-2020 10:24:52) Creating debug remote control window
38
+(0, 06-mai-2020 10:24:52) Running application
39
+(0, 06-mai-2020 10:24:54) FormCloseQuery
40
+(0, 06-mai-2020 10:24:54) Compile>Stop
41
+(0, 06-mai-2020 10:24:54) Application finished
42
+(0, 06-mai-2020 10:24:54) Destroying EditorForm
43
+(0, 06-mai-2020 10:24:54) Finalizing PiePinch
44
+(0, 06-mai-2020 10:24:54) Finalizing PieTrackIR
45
+(0, 06-mai-2020 10:24:54) Finalizing PiePPT
46
+(0, 06-mai-2020 10:24:54) Finalizing PieFastrak
47
+(0, 06-mai-2020 10:24:54) Finalizing PieIntersense
48
+(0, 06-mai-2020 10:24:54) Finalizing PieZ800
49
+(0, 06-mai-2020 10:24:54) Finalizing PieCursors
50
+(0, 06-mai-2020 10:24:54) Finalizing PieWindow
51
+(0, 06-mai-2020 10:24:54) Finalizing PieScreen
52
+(0, 06-mai-2020 10:24:54) Finalizing Pie Speech Recognition
53
+(0, 06-mai-2020 10:24:54) Finalizing PieRemote
54
+(0, 06-mai-2020 10:24:54) Finalizing PiePPJoy
55
+(0, 06-mai-2020 10:24:54) Finalizing PieMidi
56
+(0, 06-mai-2020 10:24:54) Finalizing PieP5
57
+(0, 06-mai-2020 10:24:54) Finalizing PieJoystick
58
+(0, 06-mai-2020 10:24:54) Finalizing PieStatement
59
+(0, 06-mai-2020 10:24:54) Finalizing PieFunction
60
+(0, 06-mai-2020 10:24:54) Finalizing PiePie
61
+(0, 06-mai-2020 10:24:54) Finalizing PieOSC
62
+(0, 06-mai-2020 10:24:54) Finalizing PieKeyboard
63
+(0, 06-mai-2020 10:24:54) Finalizing PieMouse
64
+(0, 06-mai-2020 10:24:54) Finalizing PieVariables
65
+(0, 06-mai-2020 10:24:54) Finalizing PieSpeech
66
+(0, 06-mai-2020 10:24:54) Finalizing PieLog
67
+(0, 06-mai-2020 10:24:54) Closing log file

+ 1933
- 0
bin/External_Software/Glovepie/readme.txt
File diff suppressed because it is too large
View File


BIN
bin/External_Software/Glovepie/thinkgear.dll View File


BIN
bin/External_Software/TGsetup.exe View File


BIN
bin/Images/Install_Wiimote/1.PNG View File


BIN
bin/Images/Install_Wiimote/2.PNG View File


BIN
bin/Images/Install_Wiimote/3.PNG View File


BIN
bin/Images/Install_Wiimote/4.PNG View File


BIN
bin/Images/Install_Wiimote/5.PNG View File


+ 24
- 50
src/Application1/Fenetre.java View File

@@ -28,9 +28,6 @@ import javax.swing.border.EmptyBorder;
28 28
 
29 29
 public class Fenetre  extends JFrame implements ActionListener{
30 30
 	
31
-	
32
-	
33
-	
34 31
 	//Initialisation des objets
35 32
 	 private JPanel conteneur;
36 33
 	 private titre conteneurTitre;
@@ -43,22 +40,31 @@ public class Fenetre  extends JFrame implements ActionListener{
43 40
 	 String[] listContent = {"CARD_1","CARD_2","CARD_3","CARD_4","CARD_5","CARD_6","CARD_7"};
44 41
 	 
45 42
 	 public int Indice = 0;
46
-	 public Graphics g ;
47
-	 
48
-	 
49
-	 
50
-	 
51
-	 
52
-	 
43
+	 public Graphics g ; 
53 44
 	 
54 45
 	 public Fenetre() {
55 46
 		 //Création des objets
56 47
 		 conteneur = new JPanel();
57 48
 		 conteneurTitre = new titre();
58 49
 		 conteneurBouton = new JPanel();
59
-		 boutonrev = new JButton("Revenir");
50
+		 
51
+		 Font f = new Font("Serif", Font.BOLD, 15);
52
+		 
53
+		 boutonrev = new JButton("Précédent");
54
+		 boutonrev.setFont(f);
55
+		 boutonrev.setForeground(Color.BLACK);
56
+		 boutonrev.setBackground(Color.LIGHT_GRAY);
57
+		 
60 58
 		 boutonsuiv = new JButton("Suivant");
59
+		 boutonsuiv.setFont(f);
60
+		 boutonsuiv.setForeground(Color.BLACK);
61
+		 boutonsuiv.setBackground(Color.LIGHT_GRAY);
62
+		 
61 63
 		 boutonfininstall = new JButton("Lancer VR");
64
+		 boutonfininstall.setFont(f);
65
+		 boutonfininstall.setForeground(Color.BLACK);
66
+		 boutonfininstall.setBackground(Color.LIGHT_GRAY);
67
+		 
62 68
 		 cl = new CardLayout();
63 69
 		 
64 70
 		
@@ -73,9 +79,7 @@ public class Fenetre  extends JFrame implements ActionListener{
73 79
 		 conteneur.setPreferredSize(new Dimension(1100,640));
74 80
 		 conteneurBouton.setPreferredSize(new Dimension(1200,50));
75 81
 		 
76
-		 
77
-		 
78
-			
82
+
79 83
 		 //Création des pages
80 84
 		 ImagePanel card1 = new ImagePanel("test.png");
81 85
 		 carte card2 = new carte(2,1);
@@ -85,23 +89,18 @@ public class Fenetre  extends JFrame implements ActionListener{
85 89
 		 carte card6 = new carte (6,1);
86 90
 		 carte card7 = new carte (7,1);
87 91
 		 
88
-		
89
-		
90
-		cl.setHgap(10);
91
-		cl.setVgap(10);
92
-		
93
-		
92
+		 cl.setHgap(10);
93
+		 cl.setVgap(10);
94
+
94 95
 		 
95
-		//SetUp des conteneurs
96
+		 //SetUp des conteneurs
96 97
 		
97
-		 conteneurBouton.setBackground(Color.BLACK);
98
+		 conteneurBouton.setBackground(Color.WHITE);
98 99
 		 conteneurBouton.add(boutonrev);
99 100
 		 conteneurBouton.add(boutonsuiv);
100 101
 		 conteneurBouton.add(boutonfininstall);
101 102
 		 
102 103
 		 
103
-		 
104
-		 
105 104
 		 conteneur.setLayout(cl);
106 105
 		 conteneur.add(card1,listContent[0]);
107 106
 		 conteneur.add(card2,listContent[1]);
@@ -110,17 +109,8 @@ public class Fenetre  extends JFrame implements ActionListener{
110 109
 		 conteneur.add(card5,listContent[4]);
111 110
 		 conteneur.add(card6,listContent[5]);
112 111
 		 conteneur.add(card7,listContent[6]);
113
-		
114
-		
115 112
 	
116 113
 		
117
-		
118
-		
119
-	
120
-		 
121
-	    
122
-		
123
-		
124 114
 		// Gestion de l'action des Boutons
125 115
 		
126 116
 	    boutonsuiv.addActionListener(new ActionListener() {
@@ -129,11 +119,11 @@ public class Fenetre  extends JFrame implements ActionListener{
129 119
 	    		
130 120
 	    	}
131 121
 	    });
122
+	    
132 123
 	    boutonrev.addActionListener(new ActionListener() {
133 124
 	    	public void actionPerformed(ActionEvent event) {
134 125
 	    		cl.previous(conteneur);
135 126
 	    		
136
-	    		
137 127
 	    	}
138 128
 	    });
139 129
 	    
@@ -141,13 +131,9 @@ public class Fenetre  extends JFrame implements ActionListener{
141 131
 	    	public void actionPerformed(ActionEvent event) {
142 132
 	    		cl.show(conteneur,"CARD_7");
143 133
 	    		
144
-	    		
145
-	    		
146 134
 	    	}
147 135
 	    });
148 136
 	    
149
-	    
150
-		
151 137
 		
152 138
 		//Affichage 
153 139
 		this.getContentPane().add(conteneurBouton, BorderLayout.SOUTH);
@@ -156,23 +142,11 @@ public class Fenetre  extends JFrame implements ActionListener{
156 142
 		this.setVisible(true);
157 143
 		conteneurTitre.setBorder(new EmptyBorder(10,10,10,10));
158 144
 		
159
-		
160
-		
161
-		
162
-		
163
-		
164
-		
165
-		
166
-	
167
-		
168 145
 	}
169
-
170
-
171 146
 	
172 147
 	public void actionPerformed(ActionEvent arg0) {
173 148
 		// TODO Auto-generated method stub
174 149
 		
175 150
 	}
176 151
 
177
-
178 152
 }

+ 1
- 1
src/Application1/ImagePanel.java View File

@@ -1,6 +1,6 @@
1 1
 package Application1;
2 2
 
3
-import java.awt.Graphics;
3
+import java.awt.Graphics; 
4 4
 import java.awt.Image;
5 5
 import java.io.File;
6 6
 import java.io.IOException;

+ 0
- 3
src/Application1/Main.java View File

@@ -12,9 +12,6 @@ public class Main {
12 12
 		
13 13
 		File file = new File("C:\\Users\\nunes\\Desktop\\Travail\\PIR\\Software\\Glovepie\\WiimoteScripts\\Test.PIE");
14 14
 		
15
-		
16
-		
17
-		
18 15
 		/*try {
19 16
 			//Starter.open(file);
20 17
 		} catch (IOException e) {

+ 3
- 3
src/Application1/TextPanel.java View File

@@ -1,6 +1,6 @@
1 1
 package Application1;
2 2
 
3
-import java.awt.Font;
3
+import java.awt.Font; 
4 4
 
5 5
 import javax.swing.JTextArea;
6 6
 
@@ -8,14 +8,14 @@ public class TextPanel extends JTextArea {
8 8
 	
9 9
 	public TextPanel() {
10 10
 		super();
11
-		Font police = new Font(Font.MONOSPACED, Font.BOLD, 25);
11
+		Font police = new Font("Century", Font.BOLD, 25);
12 12
 		this.setFont(police);
13 13
 
14 14
 	}
15 15
 	
16 16
 	public TextPanel(int taille) {
17 17
 		super();
18
-		Font police = new Font(Font.MONOSPACED, Font.PLAIN, taille);
18
+		Font police = new Font("Century", Font.PLAIN, taille);
19 19
 		this.setFont(police);	
20 20
 		this.setLineWrap(true);
21 21
 		this.setWrapStyleWord(true);

+ 157
- 92
src/Application1/carte.java View File

@@ -1,5 +1,7 @@
1 1
 package Application1;
2 2
 
3
+import java.awt.Graphics;
4
+import java.awt.Font;
3 5
 import java.awt.Color;
4 6
 import java.awt.FlowLayout;
5 7
 import java.awt.Graphics;
@@ -37,13 +39,12 @@ public class carte extends JPanel{
37 39
 		numero = i;
38 40
 		//couleur = Color.WHITE; //Default
39 41
 		type = t;
40
-		int taille = 15; //taille police
42
+		int taille = 17; //taille police
41 43
 		
42 44
 		Border border = BorderFactory.createEtchedBorder(EtchedBorder.RAISED);
43 45
 		Border blackline = BorderFactory.createLineBorder(Color.black);
44 46
 		Border compound;
45 47
 		compound = BorderFactory.createCompoundBorder(border, blackline);
46
-		JButton boutontest = new JButton("Test");
47 48
 		
48 49
 		if (i==2) {
49 50
 			
@@ -61,8 +62,9 @@ public class carte extends JPanel{
61 62
 			
62 63
 			//Cadran 1 
63 64
 			cadran1 = new TextPanel(taille);
65
+			
64 66
 			cadran1.AjouterParagraph("       \n");
65
-			cadran1.AjouterParagraph("                Du BIM à la Réalité Virtuelle!   \n");
67
+			cadran1.AjouterParagraph("                              Du BIM à la Réalité Virtuelle!  \n");
66 68
 			cadran1.AjouterParagraph("       \n");
67 69
 			cadran1.AjouterParagraph("  Projet issu d'une collaboration entre l'INSA et l'ISDAT. \n");
68 70
 			cadran1.AjouterParagraph(" \n");
@@ -77,14 +79,15 @@ public class carte extends JPanel{
77 79
 			
78 80
 			
79 81
 			//Cadran 2
80
-			cadran2 = new TextPanel(taille);	
82
+			cadran2 = new TextPanel(taille);
83
+			
81 84
 			cadran2.AjouterParagraph("       \n");
82 85
 			cadran2.AjouterParagraph("  Participants à la réalisation du projet : \n");
83 86
 			cadran2.AjouterParagraph("       \n");
84
-			cadran2.AjouterParagraph("  Elèves de l'INSA :   Elèves de l'ISDAT :   Tuteurs : \n");
87
+			cadran2.AjouterParagraph("  Elèves de l'INSA :            Elèves de l'ISDAT :           Tuteurs : \n");
85 88
 			cadran2.AjouterParagraph(" \n");
86
-			cadran2.AjouterParagraph("  AMOUR Chadi                                 BRUYERE Nathalie \n");
87
-			cadran2.AjouterParagraph("  BERRADA El Ghali                            MONTEIL Thierry \n");
89
+			cadran2.AjouterParagraph("  AMOUR Chadi                                                          BRUYERE Nathalie \n");
90
+			cadran2.AjouterParagraph("  BERRADA El Ghali                                                   MONTEIL Thierry \n");
88 91
 			cadran2.AjouterParagraph("  BERTA Pauline \n");
89 92
 			cadran2.AjouterParagraph("  BOUOULID Ilias \n");
90 93
 			cadran2.AjouterParagraph("  NUNES Joao \n");
@@ -142,7 +145,7 @@ public class carte extends JPanel{
142 145
 			//Initialitsation
143 146
 			TextPanel cadran1;
144 147
 			TextPanel cadran2;
145
-			ImagePanel cadran3;
148
+			TextPanel cadran3;
146 149
 			TextPanel cadran4;
147 150
 			GridLayout g= new GridLayout(2,2);
148 151
 			g.setHgap(10);
@@ -152,13 +155,19 @@ public class carte extends JPanel{
152 155
 			//Cadran 1 
153 156
 			
154 157
 			cadran1 = new TextPanel(taille);
155
-			
156
-			
157
-			
158 158
 			cadran1.setBorder(compound);
159
-			cadran1.AjouterParagraph(" Pour utiliser notre application, il faut disposer de Revit ainsi que GrassHopper et le plugin installé. \n");
160
-			cadran1.AjouterParagraph("\n");
161
-			cadran1.AjouterParagraph(" De plus, l'ordinateur doit disposer d'une connexion Bluetooth.  \n");
159
+			cadran1.AjouterParagraph("  \n");
160
+			cadran1.AjouterParagraph("  Pour le bon fonctionnement du système, il faut va falloir \n");
161
+			cadran1.AjouterParagraph("  que vous installiez au préalable deux logiciels.\n");
162
+			cadran1.AjouterParagraph("     * Revit (Développement d'Objets et de Structures 3D) \n");
163
+			cadran1.AjouterParagraph("     * Grasshopper (Outil utilisé en Association avec Revit)\n");
164
+			cadran1.AjouterParagraph("  \n");
165
+			cadran1.AjouterParagraph("  Vérifier bien que la connexion bluetooth fonctionne sur votre machine, \n");
166
+			cadran1.AjouterParagraph("  elle sera nécessaire pour connecter votre wiimote à l'ordinateur. \n");
167
+			cadran1.AjouterParagraph("  \n");
168
+			cadran1.AjouterParagraph("  Lorsque tous les pré-requis précédent sont installés et vérifiés  \n");
169
+			cadran1.AjouterParagraph("  vous pouvez passez à la suite!\n");
170
+			cadran1.AjouterParagraph("  \n");
162 171
 			cadran1.setEditable(false);
163 172
 			
164 173
 			//Cadran 2 
@@ -166,19 +175,50 @@ public class carte extends JPanel{
166 175
 			cadran2 = new TextPanel(taille);
167 176
 		
168 177
 			cadran2.setBorder(compound);
169
-			cadran2.AjouterParagraph(" Si vous possèdez tout les prérequis précédants, vous pouvez installer GlovePie et Trinus. \n");
170
-			cadran2.AjouterParagraph("\n");
178
+			cadran2.AjouterParagraph("  \n");
179
+			cadran2.AjouterParagraph("  Avant de pouvoir utiliser l'application il reste \n");
180
+			cadran2.AjouterParagraph("  quelques étapes à parcourir. \n");
181
+			cadran2.AjouterParagraph("  \n");
182
+			cadran2.AjouterParagraph("  Nous allons vous guider dans l'installation de deux derniers \n");
183
+			cadran2.AjouterParagraph("  logiciels, tels que : \n");
184
+			cadran2.AjouterParagraph("     * GlovePie (Emulateur de Clavier et Souris) \n");
185
+			cadran2.AjouterParagraph("     * Trinus (Convertisseur d'Images Classiques en Images au format VR) \n");
186
+			cadran2.AjouterParagraph("  \n");
187
+			cadran2.AjouterParagraph("  Sur la page suivante les démarches vous sont expliquées pas-à-pas! \n");
188
+			cadran2.AjouterParagraph("  \n");
189
+			cadran2.setEditable(false);
171 190
 			
172 191
 			//Cadran 3
173
-			cadran3 = new ImagePanel("test.png");
192
+			cadran3 = new TextPanel(taille);
193
+			
174 194
 			cadran3.setBorder(compound);
195
+			cadran3.AjouterParagraph("  \n");
196
+			cadran3.AjouterParagraph("  Vous pouvez remarquer plusieurs boutons à votre disposition ci-dessous. \n");
197
+			cadran3.AjouterParagraph("  \n");
198
+			cadran3.AjouterParagraph("  Vous avez la possibilité à tout moment de retourner sur la page \n");
199
+			cadran3.AjouterParagraph("  précédente avec le bouton PRECEDENT. \n");
200
+			cadran3.AjouterParagraph("  \n");
201
+			cadran3.AjouterParagraph("  De la même manière, vous avez la possibilité de passer à la \n");
202
+			cadran3.AjouterParagraph("  suivante avec le bouton SUIVANT.\n");
203
+			cadran3.AjouterParagraph("  \n");
204
+			cadran3.setEditable(false);
175 205
 			
176 206
 			//Cadran 4 
177 207
 			
178 208
 			cadran4 = new TextPanel(taille);
179 209
 		
180 210
 			cadran4.setBorder(compound);
181
-			cadran4.AjouterParagraph("Si vous avez déjà fait l'installation, vous pouvez cliquer sur LANCER VR pour passer directement à la réalité virtuelle.");
211
+			cadran4.AjouterParagraph("  \n");
212
+			cadran4.AjouterParagraph("  Le bouton LANCER VR est là pour vous permettre de passer en un \n");
213
+			cadran4.AjouterParagraph("  clic toute la partie Installation des logiciels GlovePie et Trinus.\n");
214
+			cadran4.AjouterParagraph("  \n");
215
+			cadran4.AjouterParagraph("  ! Si vous avez déjà réaliser les installations sur votre machine \n");
216
+			cadran4.AjouterParagraph("  lors d'une précédente utilisation, il n'est pas nécessaire de \n");
217
+			cadran4.AjouterParagraph("  recommencer ! \n");
218
+			cadran4.AjouterParagraph("  \n");
219
+			cadran4.AjouterParagraph("  ! Cliquer directement sur LANCER VR ! \n");
220
+			cadran4.AjouterParagraph("  \n");
221
+			cadran4.setEditable(false);
182 222
 			
183 223
 			
184 224
 			//Ajouter les cadrans
@@ -192,37 +232,46 @@ public class carte extends JPanel{
192 232
 		else if (i==4) {
193 233
 			
194 234
 			//Initialitsation
195
-			JPanel cadran1;
235
+			JPanel cadran1 = new JPanel();
236
+			TextPanel cadran1_1;
196 237
 			ImagePanel cadran2;
197 238
 			ImagePanel cadran3;
198 239
 			ImagePanel cadran4;
199 240
 			TextPanel Texte;
200
-			JButton BoutonInstallation = new JButton("Commencer l'instalation");
241
+			
242
+			JButton BoutonInstallation = new JButton("START INSTALLATION");
243
+			Font f = new Font("Serif", Font.BOLD, 45);
244
+			
245
+			BoutonInstallation.setFont(f);
246
+			BoutonInstallation.setForeground(Color.WHITE);
247
+			BoutonInstallation.setBackground(Color.LIGHT_GRAY);
248
+			
201 249
 			GridLayout g= new GridLayout(2,2);
250
+			GridLayout cad1 = new GridLayout(2,1);
202 251
 			g.setHgap(10);
203 252
 			g.setVgap(10);
204 253
 			setLayout(g);
205 254
 			
255
+			
206 256
 			//Cadran 1 
207 257
 			
208
-			cadran1 = new JPanel();
209
-			cadran1.setBorder(compound);
210
-			Texte = new TextPanel(taille);
211
-			Texte.AjouterParagraph("       \n");
212
-			Texte.AjouterParagraph(" L'installation du logiciel Trinus est nécessaire pour le bon fonctionnement"
213
-					+ "de notre système.");
214
-			Texte.AjouterParagraph("L'installation va se lancer automatiquement. "
215
-					+ "Vous devez accepter et suivre les étapes décrites sur les images suivantes.");
216
-			Texte.setEditable(false);
217
-					
218
-			GridLayout glb = new GridLayout(1,2);
219
-			cadran1.setLayout(glb);
220
-
221
-			cadran1.add(Texte);
222
-			cadran1.add(BoutonInstallation);
258
+			cadran1.setLayout(cad1);
223 259
 			
260
+			cadran1_1 = new TextPanel(taille);
261
+			cadran1_1.setBorder(compound);
224 262
 			
263
+			cadran1_1.AjouterParagraph("  \n");
264
+			cadran1_1.AjouterParagraph("  L'installation du logiciel Trinus est nécessaire pour le bon \n");
265
+			cadran1_1.AjouterParagraph("  fonctionnement de notre système. \n");
266
+			cadran1_1.AjouterParagraph("  START INSTALLATION va lancer automatiquement l'installation du logiciel. \n");
267
+			cadran1_1.AjouterParagraph("  Vous devez accepter et suivre les étapes décrites sur les images suivantes. \n");
268
+			cadran1_1.AjouterParagraph("  \n");
269
+			cadran1_1.setEditable(false);
225 270
 			
271
+			cadran1.add(cadran1_1);
272
+			cadran1.add(BoutonInstallation);
273
+			
274
+
226 275
 			//Cadran 2
227 276
 			cadran2 = new ImagePanel("Images/Install_Trinus/1.png");
228 277
 			cadran2.setBorder(compound);
@@ -231,6 +280,7 @@ public class carte extends JPanel{
231 280
 			cadran3 = new ImagePanel("Images/Install_Trinus/2.png");
232 281
 			cadran3.setBorder(compound);
233 282
 			
283
+			//Cadran 4
234 284
 			cadran4 = new ImagePanel("Images/Install_Trinus/3.png");
235 285
 			cadran4.setBorder(compound);
236 286
 			
@@ -248,21 +298,13 @@ public class carte extends JPanel{
248 298
 					try {
249 299
 						rt.exec(new String[] {"External_Software/TGsetup.exe"});
250 300
 						
251
-					}catch (IOException e) {
252
-						e.printStackTrace();
253 301
 					}
254
-		    		
255
-		    		
256
-		    		
257
-		    		
302
+					catch (IOException e) {
303
+						e.printStackTrace();
304
+					}		
258 305
 		    	}
259 306
 		    });
260 307
 			
261
-			
262
-			
263
-				
264
-			
265
-			
266 308
 		}
267 309
 		else if (i==5) {
268 310
 
@@ -276,39 +318,49 @@ public class carte extends JPanel{
276 318
 			g.setVgap(10);
277 319
 			setLayout(g);
278 320
 			
279
-			
321
+			//Cadran 1
280 322
 			cadran1 = new ImagePanel("Images/Install_Trinus/4.png");
281 323
 			cadran1.setBorder(border);
324
+			
325
+			//Cadran 2
282 326
 			cadran2 = new ImagePanel("Images/Install_Trinus/5.png");
283 327
 			cadran2.setBorder(compound);
328
+			
329
+			//Cadran 3
284 330
 			cadran3 = new ImagePanel("Images/Install_Trinus/6.png");
285 331
 			cadran3.setBorder(compound);
332
+			
333
+			//Cadran 4
286 334
 			cadran4 = new ImagePanel("Images/Install_Trinus/7.png");
287 335
 			cadran4.setBorder(compound);
288
-			
289
-			
290
-			
336
+		
291 337
 			
292 338
 			//Ajout des cadrans
293 339
 			add(cadran1);
294 340
 			add(cadran2);
295 341
 			add(cadran3);
296 342
 			add(cadran4);
343
+			
297 344
 		}
298 345
 		else if (i==6) {
299
-			
300
-			
301
-			
302
-			
346
+
303 347
 			//Initialitsation
304 348
 			JPanel cadran1 = new JPanel();
305 349
 			TextPanel cadran1_1;
306 350
 			ImagePanel cadran2;
307 351
 			ImagePanel cadran3;
308 352
 			ImagePanel cadran4;
309
-			JButton BoutonInstallation = new JButton("Commencer l'installation");
353
+			
354
+			
355
+			JButton BoutonInstallation = new JButton("START INSTALLATION");
356
+			Font f = new Font("Serif", Font.BOLD, 45);
357
+			
358
+			BoutonInstallation.setFont(f);
359
+			BoutonInstallation.setForeground(Color.WHITE);
360
+			BoutonInstallation.setBackground(Color.LIGHT_GRAY);
361
+			
310 362
 			GridLayout g= new GridLayout(2,2);
311
-			GridLayout cad1 = new GridLayout(1,2);
363
+			GridLayout cad1 = new GridLayout(2,1);
312 364
 			g.setHgap(10);
313 365
 			g.setVgap(10);
314 366
 			setLayout(g);
@@ -319,10 +371,13 @@ public class carte extends JPanel{
319 371
 			
320 372
 			cadran1_1 = new TextPanel(taille);
321 373
 			cadran1_1.setBorder(compound);
322
-			cadran1_1.AjouterParagraph("       \n");
323
-			cadran1_1.AjouterParagraph(" Maintenant nous devons installer la manette Wiimote.");;
324
-			cadran1_1.AjouterParagraph("Pour ça nous allons l'ajouter en tant que périphérique bluetooth."
325
-					+ "Le panneau de configuration va apparaitre. Suivez les étapes d'installation avec les images suivantes.");
374
+			
375
+			cadran1_1.AjouterParagraph("  \n");
376
+			cadran1_1.AjouterParagraph("  Pour finir, nous devons installer la manette Wiimote. \n");
377
+			cadran1_1.AjouterParagraph("  Pour cela nous allons l'ajouter en tant que périphérique Bluetooth. \n");
378
+			cadran1_1.AjouterParagraph("  Cliquer sur START INSTALLATION, le panneau de configuration va apparaitre.\n");
379
+			cadran1_1.AjouterParagraph("  Suivez les étapes d'installation avec les images suivantes. \n");
380
+			cadran1_1.AjouterParagraph("  \n");
326 381
 			cadran1_1.setEditable(false);
327 382
 			
328 383
 			cadran1.add(cadran1_1);
@@ -348,23 +403,41 @@ public class carte extends JPanel{
348 403
 			add(cadran1);
349 404
 			add(cadran2);
350 405
 			add(cadran3);
351
-			add(cadran4);
352
-			
353
-			
354
-			
355
-		
356
-	}
406
+			add(cadran4);	
357 407
 		
408
+		}
358 409
 		else if (i==7) {
410
+			
359 411
 			//Initialitsation
360 412
 			TextPanel cadran1;
361 413
 			JPanel cadran2;
362 414
 			
415
+			Font f = new Font("Serif", Font.BOLD, 15);
416
+			
363 417
 			JButton BoutonGlovePie = new JButton("Lancer GLovePie");
418
+			BoutonGlovePie.setFont(f);
419
+			BoutonGlovePie.setForeground(Color.BLACK);
420
+			BoutonGlovePie.setBackground(Color.LIGHT_GRAY);
421
+			
364 422
 			JButton BoutonTrinus = new JButton("Lancer Trinus");
423
+			BoutonTrinus.setFont(f);
424
+			BoutonTrinus.setForeground(Color.BLACK);
425
+			BoutonTrinus.setBackground(Color.LIGHT_GRAY);
426
+		
365 427
 			JButton BoutonRevit = new JButton("Lancer Revit");
428
+			BoutonRevit.setFont(f);
429
+			BoutonRevit.setForeground(Color.BLACK);
430
+			BoutonRevit.setBackground(Color.LIGHT_GRAY);
431
+			
366 432
 			JButton BoutonInternet = new JButton("Lancer AutoDesk View");
433
+			BoutonInternet.setFont(f);
434
+			BoutonInternet.setForeground(Color.BLACK);
435
+			BoutonInternet.setBackground(Color.LIGHT_GRAY);
436
+			
367 437
 			JButton BoutonClavier = new JButton ("Lancer le clavier Virtuel");
438
+			BoutonClavier.setFont(f);
439
+			BoutonClavier.setForeground(Color.BLACK);
440
+			BoutonClavier.setBackground(Color.LIGHT_GRAY);
368 441
 			
369 442
 			GridLayout grid= new GridLayout(2,2);
370 443
 			FlowLayout flow = new FlowLayout();
@@ -374,12 +447,16 @@ public class carte extends JPanel{
374 447
 			
375 448
 			//Cadran 1
376 449
 			cadran1 = new TextPanel(taille);
377
-			cadran1.AjouterParagraph("       \n");
378
-			cadran1.AjouterParagraph("Maintenant nous sommes prets pour utiliser notre système.");
379
-			cadran1.AjouterParagraph("Nous avons installé les logiciels : \n "
380
-				+ "- Trinus. \n "
381
-				+ "- GlovePie.\n"
382
-				+ "-Wiimote controller");
450
+			cadran1.AjouterParagraph("  \n");
451
+			cadran1.AjouterParagraph("  Le système est prêt à être utilisé! \n");
452
+			cadran1.AjouterParagraph("  \n");
453
+			cadran1.AjouterParagraph("  Les logiciels suivant sont bien installés sur la machine : \n ");
454
+			cadran1.AjouterParagraph("     * GlovePie \n");
455
+			cadran1.AjouterParagraph("      * Trinus \n");
456
+			cadran1.AjouterParagraph("  La WiiMote est reliée en Bluetooth à l'ordinateur! \n");
457
+			cadran1.AjouterParagraph("  \n");
458
+			cadran1.AjouterParagraph("  Les différents boutons ci-dessous vous permettent de lancer tous les outils nécessaires. \n");
459
+			cadran1.AjouterParagraph("  \n");
383 460
 			cadran1.setEditable(false);
384 461
 			cadran1.setBorder(compound);
385 462
 			
@@ -405,12 +482,10 @@ public class carte extends JPanel{
405 482
 					}catch (IOException e) {
406 483
 						e.printStackTrace();
407 484
 					}
408
-		    		
409
-		    		
410
-		    		
411
-		    		
485
+		    			
412 486
 		    	}
413 487
 		    });
488
+			
414 489
 			BoutonTrinus.addActionListener(new ActionListener() {
415 490
 		    	public void actionPerformed(ActionEvent event) {
416 491
 		    		//Lancement du panneau de configuration
@@ -422,10 +497,7 @@ public class carte extends JPanel{
422 497
 					}catch (IOException e) {
423 498
 						e.printStackTrace();
424 499
 					}
425
-		    		
426
-		    		
427
-		    		
428
-		    		
500
+
429 501
 		    	}
430 502
 		    });
431 503
 			
@@ -440,12 +512,10 @@ public class carte extends JPanel{
440 512
 					}catch (IOException e) {
441 513
 						e.printStackTrace();
442 514
 					}
443
-		    		
444
-		    		
445
-		    		
446
-		    		
515
+
447 516
 		    	}
448 517
 		    });
518
+			
449 519
 			BoutonInternet.addActionListener(new ActionListener() {
450 520
 		    	public void actionPerformed(ActionEvent event) {
451 521
 		    		//Lancement du panneau de configuration
@@ -457,12 +527,10 @@ public class carte extends JPanel{
457 527
 					}catch (IOException e) {
458 528
 						e.printStackTrace();
459 529
 					}
460
-		    		
461
-		    		
462
-		    		
463
-		    		
530
+	
464 531
 		    	}
465 532
 		    });
533
+			
466 534
 			BoutonClavier.addActionListener(new ActionListener() {
467 535
 		    	public void actionPerformed(ActionEvent event) {
468 536
 		    		//Lancement du panneau de configuration
@@ -474,10 +542,7 @@ public class carte extends JPanel{
474 542
 					}catch (IOException e) {
475 543
 						e.printStackTrace();
476 544
 					}
477
-		    		
478
-		    		
479
-		    		
480
-		    		
545
+		    			
481 546
 		    	}
482 547
 		    });
483 548
 			

Loading…
Cancel
Save