This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int8_t calculate_direction(bool rotate) { | |
vikstik_coordinate_t coordinates = read_vikstik_raw(); | |
int8_t direction = calculate_raw_direction(coordinates); | |
if (rotate && direction > -1) { | |
switch (vikstik_config.up_orientation) { | |
case JS_LEFT: | |
direction = (direction + 3) % ORIENTATION_COUNT; | |
break; | |
case JS_DOWN: | |
direction = (direction + 2) % ORIENTATION_COUNT; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation=" | |
http://camel.apache.org/schema/spring | |
http://camel.apache.org/schema/spring/camel-spring.xsd | |
http://www.springframework.org/schema/beans | |
http://www.springframework.org/schema/beans/spring-beans.xsd"> | |
<bean id="dynamic-router" class="org.apache.camel.component.dynamicrouter.DynamicRouterComponent"/> | |
<camelContext id="camelContext" xmlns="http://camel.apache.org/schema/spring" /> | |
</beans> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
META-INF/ | |
example/itest/marker/IntegrationTest.class | |
example/ | |
example/itest/ | |
example/itest/marker/ | |
spock/lang/MockingApi.class | |
spock/ | |
spock/lang/ | |
example/c2/itest/ExampleCommandAndControlIT.class | |
example/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Manifest-Version: 1.0 | |
Bundle-SymbolicName: ExampleCommandAndControlIT.arquillian-test-bundle | |
Export-Package: example.c2.itest | |
Bundle-Name: ExampleCommandAndControlIT.arquillian-test-bundle | |
Bundle-Version: 1.0.0.SNAPSHOT | |
Bnd-LastModified: 1456745190092 | |
Bundle-ManifestVersion: 2 | |
Import-Package: org.jboss.arquillian.container.test.api,org.jboss.arqu | |
illian.junit,org.jboss.arquillian.osgi,org.jboss.arquillian.test.api, | |
org.jboss.shrinkwrap.api,org.jboss.shrinkwrap.api.asset,org.jboss.shr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package example.itest | |
import org.apache.karaf.features.BootFinished | |
import org.apache.karaf.features.FeaturesService | |
import org.jboss.arquillian.test.api.ArquillianResource | |
import org.jboss.shrinkwrap.api.ShrinkWrap | |
import org.jboss.shrinkwrap.api.spec.JavaArchive | |
import org.jboss.shrinkwrap.osgi.api.BndProjectBuilder | |
import org.junit.Assert | |
import org.osgi.framework.Bundle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<profiles> | |
<profile> | |
<id>test</id> | |
<activation> | |
<activeByDefault>true</activeByDefault> | |
</activation> | |
<properties> | |
<skipTests>false</skipTests> | |
<skipUnitTests>${skipTests}</skipUnitTests> | |
<skipIntegrationTests>${skipTests}</skipIntegrationTests> |