-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathracepadserver.kv
343 lines (328 loc) · 16.7 KB
/
racepadserver.kv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
#:import startfile os.startfile
#:import start_new_thread thread.start_new_thread
<RacePadServerWidget>:
orientation: "vertical"
BoxLayout:
size_hint_y: 0.95
TabbedPanel:
do_default_tab: False
TabbedPanelItem:
text: 'Connection'
BoxLayout:
orientation:"horizontal"
BoxLayout:
orientation:"vertical"
BoxLayout:
orientation:"horizontal"
size_hint_y:None
height:"50dp"
Label:
text:"Simulate continous Key Hold"
Switch:
id:press_mode
active:True
Accordion:
orientation:"horizontal"
AccordionItem:
title:"BlueTooth"
GridLayout:
orientation:"vertical"
cols:None
rows:4
Label:
id:adapter_status
text:"Adapter Status: "
text_size:self.width,None
size_hint_y:None
height:"50dp"
Label:
id:service_status
text:"Service Status: Intialising..."
text_size:self.width,None
size_hint_y:None
height:"50dp"
Label:
id:device_name
text:"Client Name: Unknown"
text_size:self.width,None
size_hint_y:None
height:"50dp"
disabled:True
Label:
id:device_address
text:"Client Address:None"
size_hint_y:None
text_size:self.width,None
height:"50dp"
disabled:True
AccordionItem:
title:"WiFi"
GridLayout:
orientation:"vertical"
cols:None
rows:8
Label:
id:wifi_adapter_status
text:"Device Status : No Wireless Device detected"
size_hint_y:None
text_size:self.width,None
height:"50dp"
Label:
id:listening_ip_addresses
text:"Listening IP Addresses : None"
disabled:True
size_hint_y:None
text_size:self.width,None
height:"50dp"
BoxLayout:
size_hint_y:None
height:"50dp"
orientation:"horizontal"
Label:
id:port_label
text:"Port"
text_size:self.width,None
disabled:True
TextInput:
id:port_text_input
text:"55555"
padding:"15dp"
multiline:False
disabled:True
Button:
id:refresh_port
text:"Refresh"
disabled:True
on_press:root.refresh_port_callback(*args)
BoxLayout:
orientation:"horizontal"
size_hint_y:None
height:"50dp"
Label:
id:hotspot_label
text:"Create Race Pad HotSpot \n(Run as administrator to Enable this feature)"
size_hint_y:None
text_size:self.width,None
height:"50dp"
disabled:True
Switch:
id:hotspot_switch
disabled:True
active:False
on_active:root.hotspot_switch_thread(*args)
ProgressBar:
id:progress_bar
size_hint_y:None
height:"20dp"
max:100
value:0
BoxLayout:
orientation:"horizontal"
size_hint_y:None
height:"50dp"
Label:
id:hotspot_share_label
text_size:self.width,None
text:"Active internet connection to share with Race Pad HotSpot:"
disabled:True
Spinner:
id:connections_spinner
text:"select the connection to share"
disabled:True
on_text:root.connections_spinner_callback(*args)
Label:
id:hotspot_inf_label
font_size:"12sp"
text:"Please switch ON Race Pad HotSpot if you are not in same network \nE.g.: \n1) Android & PC not connected to same WiFi Router.\n2) PC connected to LAN and Android is not connected to internet and etc."
BoxLayout:
size_hint_y:None
height:"25dp"
orientation:"horizontal"
BoxLayout:
size_hint_x:0.97
Button:
disabled:True
id:hotspot_repair
size_hint_x:0.03
on_press:root.repair_callback(*args)
Image:
allow_stretch: True
size:hotspot_repair.size
source: 'data/repair-icon.png'
pos: hotspot_repair.pos
TabbedPanelItem:
text: "Profiles"
BoxLayout:
orientation: "horizontal"
ProfileTabWidget
BoxLayout:
orientation: "vertical"
BoxLayout:
size_hint_y:0.04
Label:
id:game_name
text:"Game Name"
font_size:"12sp"
BoxLayout:
size_hint_y:0.06
TextInput:
id:game_path
text: "Game Path"
multiline: False
font_size:"12sp"
BoxLayout:
size_hint_y:0.9
orientation:"vertical"
BoxLayout:
AnchorLayout:
anchor_x: "left"
anchor_y: "top"
BoxLayout:
orientation:"vertical"
ButtonsTop:
id:btn_1
text:"btn_1"
ButtonsTop:
id:btn_2
text:"btn_2"
AnchorLayout:
anchor_x: "center"
anchor_y: "top"
Button:
id:btn_x
text:"btn_x"
border: 0, 0, 0, 0
background_normal: "data/xbox-button.png"
background_down: "data/xbox-button-clicked.png"
AnchorLayout:
anchor_x: "right"
anchor_y: "top"
BoxLayout:
orientation:"vertical"
ButtonsTop:
id:btn_3
text:"btn_3"
ButtonsTop:
id:btn_4
text:"btn_4"
BoxLayout:
BoxLayout:
size_hint_x:0.17
Button:
id:btn_l
text:'btn_l'
border: 0, 0, 0, 0
background_normal: "data/arrow-left.png"
background_down: "data/arrow-left-clicked.png"
BoxLayout:
size_hint_x:0.17
Button:
id:btn_r
text:'btn_r'
border: 0, 0, 0, 0
background_normal: "data/arrow-right.png"
background_down: "data/arrow-right-clicked.png"
BoxLayout:
size_hint_x:0.32
Button:
border: 0, 0, 0, 0
background_disabled_normal:"data/test.png"
disabled:True
BoxLayout:
size_hint_x:0.17
Button:
id:btn_u
text:'btn_u'
border: 0, 0, 0, 0
background_normal: "data/arrow-up.png"
background_down: "data/arrow-up-clicked.png"
BoxLayout:
size_hint_x:0.17
Button:
id:btn_d
text:'btn_d'
border: 0, 0, 0, 0
background_normal: "data/arrow-down.png"
background_down: "data/arrow-down-clicked.png"
BoxLayout:
AnchorLayout:
anchor_x: "left"
anchor_y: "bottom"
BoxLayout:
orientation:"vertical"
ButtonsTop:
id:btn_5
text:"btn_5"
ButtonsTop:
id:btn_6
text:"btn_6"
AnchorLayout:
anchor_x: "right"
anchor_y: "bottom"
BoxLayout:
orientation:"vertical"
ButtonsTop:
id:btn_7
text:"btn_7"
ButtonsTop:
id:btn_8
text:"btn_8"
TabbedPanelItem:
text: "Help"
RstDocument:
text:open("data/help.txt",'r').read()
TabbedPanelItem:
text: "About"
BoxLayout:
orientation:"vertical"
BoxLayout:
size_hint_y:0.1
BoxLayout:
size_hint_y:0.4
orientation:"horizontal"
BoxLayout:
Image:
size_hint:[None,None]
size:[350,100]
source:"data/bitsblender_logo.png"
BoxLayout:
Image:
size_hint:[None,None]
size:[100,100]
source:"data/rac_pad.png"
BoxLayout:
BoxLayout:
size_hint_y:0.4
orientation:"vertical"
BoxLayout
Label:
text:"RacePadServer v2.1"
font_size:"30sp"
BoxLayout:
Label:
text:"copyright(c) 2016 BitsBlender[size=5]TM[/size]. All rights reserved"
markup:True
font_size:"10sp"
Label:
text:"Powered by Kivy Python 1.9.1"
font_size:"10sp"
Label:
text:"For More: [ref=link]bitsblender.wix.com/racepad[/ref]"
markup:True
font_size:"12sp"
on_ref_press:startfile("http://bitsblender.wix.com/racepad")
BoxLayout
BoxLayout
BoxLayout:
size_hint_y:0.1
BoxLayout:
size_hint_y: 0.05
Label:
id:connection_status
text:"No Connection"
text_size: self.width,None
<SpaceLayout@BoxLayout>:
<ButtonsTop@Button>:
border: 0, 0, 0, 0
background_normal: "data/rect-butt.png"
background_down: "data/rect-butt-clicked.png"