Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
817b026b
Kaydet (Commit)
817b026b
authored
Mar 30, 2017
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:loopvartoosmall
Change-Id: Idd385c764778313bfb419a04ca7a3884b78e88f6
üst
2f2296d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
12 deletions
+6
-12
RemoteControlContainer.m
apple_remote/source/RemoteControlContainer.m
+6
-12
No files found.
apple_remote/source/RemoteControlContainer.m
Dosyayı görüntüle @
817b026b
...
...
@@ -92,15 +92,13 @@
}
-
(
void
)
setListeningToRemote
:
(
BOOL
)
value
{
unsigned
int
i
;
for
(
i
=
0
;
i
<
[
remoteControls
count
];
i
++
)
{
for
(
NSUInteger
i
=
0
;
i
<
[
remoteControls
count
];
i
++
)
{
[[
remoteControls
objectAtIndex
:
i
]
setListeningToRemote
:
value
];
}
if
(
value
&&
value
!=
[
self
isListeningToRemote
])
[
self
performSelector
:
@selector
(
reset
)
withObject
:
nil
afterDelay
:
0
.
01
];
}
-
(
BOOL
)
isListeningToRemote
{
unsigned
int
i
;
for
(
i
=
0
;
i
<
[
remoteControls
count
];
i
++
)
{
for
(
NSUInteger
i
=
0
;
i
<
[
remoteControls
count
];
i
++
)
{
if
([[
remoteControls
objectAtIndex
:
i
]
isListeningToRemote
])
{
return
YES
;
}
...
...
@@ -112,8 +110,7 @@
#ifdef DEBUG
NSLog
(
@"Apple Remote: start listening to events... "
);
#endif
unsigned
int
i
;
for
(
i
=
0
;
i
<
[
remoteControls
count
];
i
++
)
{
for
(
NSUInteger
i
=
0
;
i
<
[
remoteControls
count
];
i
++
)
{
[[
remoteControls
objectAtIndex
:
i
]
startListening
:
sender
];
}
}
...
...
@@ -121,23 +118,20 @@
#ifdef DEBUG
NSLog
(
@"Apple Remote: stopListening to events... "
);
#endif
unsigned
int
i
;
for
(
i
=
0
;
i
<
[
remoteControls
count
];
i
++
)
{
for
(
NSUInteger
i
=
0
;
i
<
[
remoteControls
count
];
i
++
)
{
[[
remoteControls
objectAtIndex
:
i
]
stopListening
:
sender
];
}
}
-
(
BOOL
)
isOpenInExclusiveMode
{
BOOL
mode
=
YES
;
unsigned
int
i
;
for
(
i
=
0
;
i
<
[
remoteControls
count
];
i
++
)
{
for
(
NSUInteger
i
=
0
;
i
<
[
remoteControls
count
];
i
++
)
{
mode
=
mode
&&
([[
remoteControls
objectAtIndex
:
i
]
isOpenInExclusiveMode
]);
}
return
mode
;
}
-
(
void
)
setOpenInExclusiveMode
:
(
BOOL
)
value
{
unsigned
int
i
;
for
(
i
=
0
;
i
<
[
remoteControls
count
];
i
++
)
{
for
(
NSUInteger
i
=
0
;
i
<
[
remoteControls
count
];
i
++
)
{
[[
remoteControls
objectAtIndex
:
i
]
setOpenInExclusiveMode
:
value
];
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment